| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testIfCompilerPassCollectsServicesByAddingMethodCallsTheseWillExist(): void |
||
| 29 | { |
||
| 30 | $collectingService = new Definition(); |
||
| 31 | $this->setDefinition(Extractor::class, $collectingService); |
||
| 32 | |||
| 33 | $collectedService = new Definition(); |
||
| 34 | $collectedService->addTag('php_translation.extractor', ['type' => 'html']); |
||
| 35 | $this->setDefinition('collected_service', $collectedService); |
||
| 36 | |||
| 37 | $this->compile(); |
||
| 38 | |||
| 39 | $this->assertContainerBuilderHasServiceDefinitionWithMethodCall( |
||
| 40 | Extractor::class, |
||
| 41 | 'addFileExtractor', |
||
| 42 | [new Reference('collected_service')] |
||
| 43 | ); |
||
| 46 |