Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function setUp() |
||
19 | { |
||
20 | $this->router = $this |
||
21 | ->getMockBuilder(Router::class) |
||
22 | ->disableOriginalConstructor() |
||
23 | ->disableOriginalClone() |
||
24 | ->disableArgumentCloning() |
||
25 | ->disallowMockingUnknownTypes() |
||
26 | ->setMethods(['route']) |
||
27 | ->getMock(); |
||
28 | |||
29 | $this->router |
||
30 | ->expects($this->once()) |
||
31 | ->method('route') |
||
32 | ->willReturn(['controller' => 'Default', 'action' => 'notFound', 'params' => []]); |
||
33 | |||
34 | $this->app = new Application($this->router); |
||
35 | } |
||
48 |