Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function testControllerRegistryWithDetector() |
||
14 | { |
||
15 | $container = new Picotainer([]); |
||
16 | |||
17 | $parameterFetcherRegistry = ParameterFetcherRegistry::buildDefaultControllerRegistry(); |
||
18 | |||
19 | $controllerAnalyzer = new ControllerAnalyzer($container, $parameterFetcherRegistry, new AnnotationReader()); |
||
20 | |||
21 | $this->assertTrue($controllerAnalyzer->isController(TestController2::class)); |
||
22 | $this->assertTrue($controllerAnalyzer->isController(TestAction::class)); |
||
23 | $this->assertFalse($controllerAnalyzer->isController(TestFilter::class)); |
||
24 | } |
||
25 | } |
||
26 |