GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( dbe9e8...3eb9e5 )
by Benjamin
03:26
created

DefaultControllerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testRender() 0 5 1
A setUp() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Tests\Lib\Controller;
6
7
use GuzzleHttp\Psr7\Response;
8
use Lib\Controller\DefaultController;
9
use PHPUnit\Framework\TestCase;
10
11
class DefaultControllerTest extends TestCase
12
{
13
    /** @var DefaultController */
14
    private $controller;
15
16
    public function setUp()
17
    {
18
        $this->controller = new DefaultController();
19
    }
20
21
    public function testRender()
22
    {
23
        $response = $this->controller->render('index.html.twig', []);
24
        $this->assertInstanceOf(Response::class, $response);
25
        $this->assertEquals(200, $response->getStatusCode());
26
    }
27
}
28