Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function testCompilerPass() |
||
24 | { |
||
25 | $bundle = new PalmtreeCanonicalUrlBundle(); |
||
26 | |||
27 | $container = new ContainerBuilder(); |
||
28 | |||
29 | $bundle->build($container); |
||
30 | |||
31 | $passes = $container->getCompilerPassConfig()->getPasses(); |
||
32 | $found = false; |
||
33 | |||
34 | foreach ($passes as $pass) { |
||
35 | if ($pass instanceof CompilerPass) { |
||
36 | $found = true; |
||
37 | break; |
||
38 | } |
||
39 | } |
||
40 | |||
41 | $this->assertTrue($found); |
||
42 | } |
||
43 | } |
||
44 |