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 ( 17370b...216ab3 )
by Benjamin
02:35
created

RouterTest::testMatcherIsCalled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 21
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 16
nc 1
nop 0
dl 0
loc 21
rs 9.3142
c 0
b 0
f 0
1
<?php
2
3
namespace Tests\App\Lib\Routing;
4
5
use App\Lib\Http\Request;
6
use App\Lib\Routing\RouteLoader;
7
use App\Lib\Routing\Router;
8
use App\Lib\Routing\UrlMatcher;
9
use PHPUnit\Framework\TestCase;
10
11
class RouterTest extends TestCase
12
{
13
    public function testMatcherIsCalled()
14
    {
15
        $matcher = $this
16
            ->getMockBuilder(UrlMatcher::class)
17
            ->disableOriginalConstructor()
18
            ->disableOriginalClone()
19
            ->disallowMockingUnknownTypes()
20
            ->setMethods(['match'])
21
            ->getMock();
22
        $loader = $this
23
            ->getMockBuilder(RouteLoader::class)
24
            ->disableOriginalConstructor()
25
            ->disableOriginalClone()
26
            ->disallowMockingUnknownTypes()
27
            ->getMock();
28
29
        $router = new Router($loader, $matcher);
30
31
        $matcher->expects($this->once())->method('match');
32
33
        $router->route(new Request());
34
    }
35
}
36