| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function getObjectCreator(): ObjectCreatorServiceInterface |
||
| 26 | { |
||
| 27 | $objectCreatorService = $this->createMock(ObjectCreatorServiceInterface::class); |
||
| 28 | $objectCreatorService->method('createObjectFromInterface')->willReturnCallback(function ($if, $args) { |
||
| 29 | $class = str_replace("\\Entity\\", "\\Tests\\Entity\\", $if); |
||
| 30 | $class = str_replace("Interface", "", $class); |
||
| 31 | return new $class(...$args); |
||
| 32 | }); |
||
| 33 | /** @var ObjectCreatorServiceInterface $objectCreatorService */ |
||
| 34 | return $objectCreatorService; |
||
| 35 | } |
||
| 36 | //</editor-fold desc="Protected Methods"> |
||
| 37 | } |