createContainer(); $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 = $this->createContainer(); $this->assertFalse($container->has('foo')); $this->expectException(NotFoundExceptionInterface::class); $container->get('foo'); } public function testAdapterWrapsOtherExceptions() { $container = $this->createContainer(); try { $container->get('error'); } catch (\Exception $e) { $this->assertInstanceOf(ContainerExceptionInterface::class, $e); $this->assertEquals(ContainerException::class, get_class($e)); } } /** * @return ContainerInterface */ abstract protected function createContainer(); } __halt_compiler();----SIGNATURE:----ZDdDMa7dkcraVytqtWhTrS6RwITL1+q8mo9muQN/GZLtZLUt9sJPeFgaoM1tZlp1XDvbIgkIAGDfjNZ5EawCyBYL/O/A1GgIaP9f47GtNm/RkHRKhngK/X1r3OSQHOZ8tGXB1ltMLab/EPWLBbSj5RCskUuAHSU7CVNEpWdIS+N2dPzYA7ThoWot6o8cjwjXKw2Af7pvKxRRfAtVPo82ap18650JLmUQLuajFtQP7uf9z8hPlbPW4fifil6ypHtL/0lyH7UoR5mbORnXYBsZYin7VIMT0YOai1/NiBZAty46PRZtoLhY1+d6nTenW0wCP/X+fQkeSU9IRbFv17I2VY2dq/h+TLFGbGBD68Y9dzQkB7n7cJNa866uXHWyjJJedz93r+LL4NCJxmscQXBP8WFjhA0g1wVBw0R8JgEXJZSZKKSpgi8aNHY0lR5YEi1ngy2s83eu8qsqHuD21LY/hM43NMxjTjB5AMs5lmRu5GswIMqgQbi4zJwcqLbTHMzD2PTFiNWlX0RG+3tjOLmPWuHVPdzhYHaPcVO1oR2Xrbtnp3tJenFjzD/VEs9pYGXrj1/6sw/cO1uHgy2ItTMlOn44Ty3u3eP4J7EmMdCw5IRzvhlVTnmXtwvkoAqGq4hqP4Rtu+V0pLkAU3EzUtdx2rPxSP4n7DK+Gem/G9KkWkw=----ATTACHMENT:----NTU2NzM1NzAyNDY3NTI5OCAxMDI3MTk2OTg3MzMzOTYwIDc0MDYwNDI4MDYyNTUwOTg=