new \ArrayIterator(range(1, 5))]) )); $this->assertTrue($container->has('array_iterator')); $arrayIterator = $container->get('array_iterator'); $this->assertEquals([1, 2, 3, 4, 5], iterator_to_array($arrayIterator)); } public function testThrowsExceptionOnNonExistentItem() { $container = new CompositeContainer(); $container->addContainer(new ArrayContainer); $container->addContainer(new PimpleContainerAdapter(new Pimple)); $container->addContainer(new ArrayContainer); $this->assertFalse($container->has('foo')); $this->expectException(NotFoundExceptionInterface::class); $container->get('foo'); } public function testNoSubContainers() { $container = new CompositeContainer(); $this->assertFalse($container->has('foo')); $this->expectException(NotFoundExceptionInterface::class); $container->get('foo'); } } __halt_compiler();----SIGNATURE:----J+RQ52e9r79DHsmingNr0pD2QiDOmpYfvq1g2RC+E/QRiYqdYAzB7pLMMa9+k/3P7x4DlmDL+Dg5Sibch6Iv4ydqrRCphamFxNC9qBqY1u/NzXUmt4PqbzUE4nlgED2xmmkwpNQXa1RX6VzvSMV2eAWA5+Y8/uHUIJFaGRiqxVqKM97/Z9G9VuS7CndKNvx0S80FXhARpJw0V+g90QrODOGWVjnMky0i0cv8c5F4QwrrAB4IaDxYlBxyMfBQg6gJct3hLISCUhFpq2N6MByBPgRYfGRPmE++a+iR3GNujbHkVXs2M+ul4j1KYn22qD+XVQsLWn7ACQumCjWUb2BUXdO/SaMOV1Er3LSzmYTYThLrAaa4siG9eRcAarked2EdlU2CBS4DQ7eth5J3MOWiomIN36ac/YnVrxTLDIhHaw87oRcIKaSsqQ7tHSNVqUFQnfaZlbaKe6HeP5GnE+Tm/vmZcgWg7XwilhYYfiZaCyIJS6fWdSWafL7WHCnvT1nYhas/6XzUAPiBYi0m4KuJS/IO7uq2l75BvC3ivRIPl1LgdXo7N67J9kqWrXtv35XZ8fjMjcNsSaEU4LzY3az5covK2oLAlMx5H+qUl0iJ10VkPN8tz7pV3mY7yZqNH6TOrvQVCdO5OqeMnLLTSUumyzPWhh68EkFKuQljNzybGBg=----ATTACHMENT:----MjUyNTUwNjc5OTA1MDE4NyA1MzM4MDU1NjQyNjAzNTcgNTQ4NTUwOTU3ODM1MzI2Nw==