| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | function it_registers_compiler_passes(ContainerBuilder $container) |
||
| 24 | { |
||
| 25 | $container |
||
| 26 | ->addCompilerPass(Argument::type(DictionaryFactoryBuildingPass::class)) |
||
| 27 | ->shouldBeCalledTimes(1) |
||
| 28 | ->willReturn($container) |
||
| 29 | ; |
||
| 30 | |||
| 31 | $container |
||
| 32 | ->addCompilerPass(Argument::type(DictionaryBuildingPass::class)) |
||
| 33 | ->shouldBeCalledTimes(1) |
||
| 34 | ->willReturn($container) |
||
| 35 | ; |
||
| 36 | |||
| 37 | $container |
||
| 38 | ->addCompilerPass(Argument::type(DictionaryRegistrationPass::class)) |
||
| 39 | ->shouldBeCalledTimes(1) |
||
| 40 | ->willReturn($container) |
||
| 41 | ; |
||
| 42 | |||
| 43 | $container |
||
| 44 | ->addCompilerPass(Argument::type(DictionaryTracePass::class)) |
||
| 45 | ->shouldBeCalledTimes(1) |
||
| 46 | ->willReturn($container) |
||
| 47 | ; |
||
| 48 | |||
| 49 | $this->build($container); |
||
| 50 | } |
||
| 52 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.