Conditions | 2 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function testShouldAddCompilerPass() |
||
17 | { |
||
18 | $container = $this->createMock(ContainerBuilder::class); |
||
19 | $container |
||
20 | ->expects($this->exactly(2)) |
||
21 | ->method('addCompilerPass') |
||
22 | ->willReturnCallback(function ($pass) use ($container) { |
||
23 | $this->assertTrue($pass instanceof FormatPass || $pass instanceof PaginatorCompilerPass); |
||
24 | |||
25 | return $container; |
||
26 | }) |
||
27 | ; |
||
28 | |||
29 | $bundle = new ApiServiceBundle(); |
||
30 | $bundle->build($container); |
||
31 | } |
||
33 |