@@ 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 |
|
@@ 113-122 (lines=10) @@ | ||
110 | * @test |
|
111 | * @expectedException \RuntimeException |
|
112 | */ |
|
113 | public function cannotLoadSameDocumentMoreThanOnce() |
|
114 | { |
|
115 | $this->decriptionMock |
|
116 | ->expects($this->any()) |
|
117 | ->method('getPaths') |
|
118 | ->willReturn([]); |
|
119 | ||
120 | $this->loader->load(self::DOCUMENT_PATH); |
|
121 | $this->loader->load(self::DOCUMENT_PATH); |
|
122 | } |
|
123 | ||
124 | /** |
|
125 | * @test |
|
@@ 127-136 (lines=10) @@ | ||
124 | /** |
|
125 | * @test |
|
126 | */ |
|
127 | public function willReturnRouteCollection() |
|
128 | { |
|
129 | $this->decriptionMock |
|
130 | ->expects($this->any()) |
|
131 | ->method('getPaths') |
|
132 | ->willReturn([]); |
|
133 | ||
134 | $routes = $this->loader->load(self::DOCUMENT_PATH); |
|
135 | $this->assertInstanceOf('Symfony\Component\Routing\RouteCollection', $routes); |
|
136 | } |
|
137 | ||
138 | /** |
|
139 | * @test |