Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function testFactoryThrowsExceptionWhenFileDoesNotReturnContainer() : void |
||
34 | { |
||
35 | file_put_contents( |
||
36 | $this->tempFilename, |
||
37 | "<?php return new \stdClass();" |
||
38 | ); |
||
39 | |||
40 | $this->expectException(NotAPsrContainer::class); |
||
41 | ContainerFactory::createContainerFromIncludedFile($this->tempFilename); |
||
42 | } |
||
43 | |||
58 |