| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | protected function validateServiceClass($actualClassName, $expectedClassName, $serviceId, $tagName) |
||
| 18 | { |
||
| 19 | if (!is_a($actualClassName, $expectedClassName, true)) { |
||
| 20 | throw new \RuntimeException(sprintf('Expected service "%s" tagged with "%s" to be an instance of "%s" but instead got "%s".', |
||
| 21 | $serviceId, |
||
| 22 | $tagName, |
||
| 23 | $expectedClassName, |
||
| 24 | $actualClassName |
||
| 25 | )); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 48 |