Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function exceptionIsThrownIfConfigIsNotFound() |
||
41 | { |
||
42 | $container = $this->prophesize(ContainerInterface::class); |
||
43 | $container->has('config')->willReturn(false); |
||
44 | |||
45 | $this->expectException(ServiceNotCreatedException::class); |
||
46 | $this->expectExceptionMessage('Cannot find a config array in the container'); |
||
47 | |||
48 | $this->factory->__invoke($container->reveal()); |
||
49 | } |
||
50 | } |
||
51 |