| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function testSetMatcher(): void |
||
| 33 | { |
||
| 34 | $def = new Definition(); |
||
| 35 | $def->addTag(ViewMatcherRegistryPass::MATCHER_TAG); |
||
| 36 | $serviceId = 'service_id'; |
||
| 37 | $this->setDefinition($serviceId, $def); |
||
| 38 | |||
| 39 | $this->compile(); |
||
| 40 | |||
| 41 | $this->assertContainerBuilderHasServiceDefinitionWithMethodCall( |
||
| 42 | ViewMatcherRegistry::class, |
||
| 43 | 'setMatcher', |
||
| 44 | [ |
||
| 45 | $serviceId, |
||
| 46 | new Reference($serviceId), |
||
| 47 | ] |
||
| 48 | ); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |