| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | final class ErrorLogHandlerFactoryTest extends TestCase |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var ContainerInterface&MockObject |
||
| 23 | */ |
||
| 24 | private ContainerInterface $container; |
||
| 25 | |||
| 26 | public function setUp(): void |
||
| 27 | { |
||
| 28 | $this->container = $this->createMock(ContainerInterface::class); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Assert that the factory implements FactoryInterface |
||
| 33 | */ |
||
| 34 | public function testImplementsFactoryInterface(): void |
||
| 35 | { |
||
| 36 | $factory = new ErrorLogHandlerFactory(); |
||
| 37 | |||
| 38 | $this->assertInstanceOf(FactoryInterface::class, $factory); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Assert that calls to __invoke() will return a configured ErrorLogHandler instance |
||
| 43 | * |
||
| 44 | * @throws ServiceNotCreatedException |
||
| 45 | */ |
||
| 46 | public function testInvokeWillReturnValidErrorLogHandler(): void |
||
| 57 | ); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |