| @@ 79-88 (lines=10) @@ | ||
| 76 | /** |
|
| 77 | * @test |
|
| 78 | */ |
|
| 79 | public function canLoadMultipleDocuments() |
|
| 80 | { |
|
| 81 | $this->decriptionMock |
|
| 82 | ->expects($this->any()) |
|
| 83 | ->method('getPaths') |
|
| 84 | ->willReturn([]); |
|
| 85 | ||
| 86 | $this->loader->load(self::DOCUMENT_PATH); |
|
| 87 | $this->loader->load(self::DOCUMENT_PATH . '2'); |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * @test |
|
| @@ 111-120 (lines=10) @@ | ||
| 108 | * @test |
|
| 109 | * @expectedException \RuntimeException |
|
| 110 | */ |
|
| 111 | public function cannotLoadSameDocumentMoreThanOnce() |
|
| 112 | { |
|
| 113 | $this->decriptionMock |
|
| 114 | ->expects($this->any()) |
|
| 115 | ->method('getPaths') |
|
| 116 | ->willReturn([]); |
|
| 117 | ||
| 118 | $this->loader->load(self::DOCUMENT_PATH); |
|
| 119 | $this->loader->load(self::DOCUMENT_PATH); |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * @test |
|
| @@ 125-134 (lines=10) @@ | ||
| 122 | /** |
|
| 123 | * @test |
|
| 124 | */ |
|
| 125 | public function willReturnRouteCollection() |
|
| 126 | { |
|
| 127 | $this->decriptionMock |
|
| 128 | ->expects($this->any()) |
|
| 129 | ->method('getPaths') |
|
| 130 | ->willReturn([]); |
|
| 131 | ||
| 132 | $routes = $this->loader->load(self::DOCUMENT_PATH); |
|
| 133 | $this->assertInstanceOf('Symfony\Component\Routing\RouteCollection', $routes); |
|
| 134 | } |
|
| 135 | ||
| 136 | /** |
|
| 137 | * @test |
|