Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function testFactoryReturnsContainerIfIncluded() : void |
||
45 | { |
||
46 | file_put_contents( |
||
47 | $this->tempFilename, |
||
48 | '<?php return new class implements \Psr\Container\ContainerInterface { |
||
49 | public function get($id) {} |
||
50 | public function has($id) {} |
||
51 | };' |
||
52 | ); |
||
53 | |||
54 | $container = ContainerFactory::createContainerFromIncludedFile($this->tempFilename); |
||
55 | self::assertInstanceOf(ContainerInterface::class, $container); |
||
56 | } |
||
57 | } |
||
58 |