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