| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function testCreate() |
||
| 22 | { |
||
| 23 | $containerMock = $this->createMock(ContainerInterface::class); |
||
| 24 | $containerMock->expects(self::once()) |
||
| 25 | ->method('get') |
||
| 26 | ->with(self::stringContains(ObjectService::class)) |
||
| 27 | ->willReturn($this->createMock(ObjectServiceInterface::class)); |
||
| 28 | |||
| 29 | $factory = new InvoiceManagerFactory(); |
||
| 30 | $result = $factory($containerMock, 'test'); |
||
| 31 | self::assertInstanceOf(InvoiceManager::class, $result); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |