1 | <?php |
||
9 | class LegacyRouteLoaderTest extends \PHPUnit_Framework_TestCase |
||
10 | { |
||
11 | /** @var vfsStreamFile */ |
||
12 | private $legacyFile; |
||
13 | |||
14 | /** @var LegacyRouteLoader */ |
||
15 | private $routeLoader; |
||
16 | |||
17 | /** @var \org\bovigo\vfs\vfsStreamDirectory */ |
||
18 | private $root; |
||
19 | |||
20 | /** |
||
21 | * @test |
||
22 | */ |
||
23 | public function createsHelloPhpRoute() |
||
36 | |||
37 | /** |
||
38 | * @test |
||
39 | * @expectedException \RuntimeException |
||
40 | * @expectedExceptionMessage Do not add the "legacy" loader twice |
||
41 | */ |
||
42 | public function shouldThrowRuntimeExceptionWhenLoadedMultipleTimes() |
||
47 | |||
48 | /** |
||
49 | * @test |
||
50 | */ |
||
51 | public function dontSupportWhenPathIsNotExisting() |
||
56 | |||
57 | /** |
||
58 | * @test |
||
59 | */ |
||
60 | public function dontSupportWhenPathIsNotReadable() |
||
67 | |||
68 | /** |
||
69 | * @test |
||
70 | */ |
||
71 | public function supportsLegacyType() |
||
77 | |||
78 | /** {@inheritdoc} */ |
||
79 | protected function setUp() |
||
85 | } |
||
86 |