| @@ 96-107 (lines=12) @@ | ||
| 93 | /** |
|
| 94 | * |
|
| 95 | */ |
|
| 96 | public function testLoadFileWithCache() |
|
| 97 | { |
|
| 98 | $this->router->expects($this->once()) |
|
| 99 | ->method('isCached') |
|
| 100 | ->willReturn(true); |
|
| 101 | $this->router->expects($this->once()) |
|
| 102 | ->method('getCollection') |
|
| 103 | ->willReturn(new RouteCollection()); |
|
| 104 | ||
| 105 | $collection = $this->loader->loadFile($this->file); |
|
| 106 | $this->assertInstanceOf(RouteCollection::class, $collection); |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * |
|
| @@ 93-106 (lines=14) @@ | ||
| 90 | /** |
|
| 91 | * |
|
| 92 | */ |
|
| 93 | public function testLoadFileCache() |
|
| 94 | { |
|
| 95 | $this->router->expects($this->once()) |
|
| 96 | ->method('isCached') |
|
| 97 | ->willReturn(true); |
|
| 98 | ||
| 99 | $this->router->expects($this->once()) |
|
| 100 | ->method('getCollection') |
|
| 101 | ->willReturn(new RouteCollection()); |
|
| 102 | ||
| 103 | $collection = $this->loader->loadFile($this->file); |
|
| 104 | ||
| 105 | $this->assertInstanceOf(RouteCollection::class, $collection); |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * |
|