Tests/Router/Loaders/FileLoaderTest.php 1 location
|
@@ 103-114 (lines=12) @@
|
100 |
|
/** |
101 |
|
* |
102 |
|
*/ |
103 |
|
public function testLoadFileWithCache() |
104 |
|
{ |
105 |
|
$this->router->expects($this->once()) |
106 |
|
->method('isCached') |
107 |
|
->willReturn(true); |
108 |
|
$this->router->expects($this->once()) |
109 |
|
->method('getCollection') |
110 |
|
->willReturn(new RouteCollection()); |
111 |
|
|
112 |
|
$collection = $this->loader->loadFile($this->file); |
113 |
|
$this->assertInstanceOf(RouteCollection::class, $collection); |
114 |
|
} |
115 |
|
|
116 |
|
/** |
117 |
|
* |
Tests/Router/Loaders/YamlLoaderTest.php 1 location
|
@@ 100-113 (lines=14) @@
|
97 |
|
/** |
98 |
|
* |
99 |
|
*/ |
100 |
|
public function testLoadFileCache() |
101 |
|
{ |
102 |
|
$this->router->expects($this->once()) |
103 |
|
->method('isCached') |
104 |
|
->willReturn(true); |
105 |
|
|
106 |
|
$this->router->expects($this->once()) |
107 |
|
->method('getCollection') |
108 |
|
->willReturn(new RouteCollection()); |
109 |
|
|
110 |
|
$collection = $this->loader->loadFile($this->file); |
111 |
|
|
112 |
|
$this->assertInstanceOf(RouteCollection::class, $collection); |
113 |
|
} |
114 |
|
|
115 |
|
/** |
116 |
|
* |