Conditions | 4 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function testDefaultConfig() |
||
17 | { |
||
18 | $builder = new ContainerBuilder(); |
||
19 | $bundle = new BdfSerializerBundle(); |
||
20 | $bundle->build($builder); |
||
21 | |||
22 | $compilerPasses = $builder->getCompiler()->getPassConfig()->getPasses(); |
||
23 | $found = 0; |
||
24 | |||
25 | foreach ($compilerPasses as $pass) { |
||
26 | if ($pass instanceof SerializerLoaderPass || $pass instanceof SerializerNormalizerPass) { |
||
27 | ++$found; |
||
28 | } |
||
29 | } |
||
30 | |||
31 | $this->assertSame(2, $found); |
||
32 | } |
||
34 |