acclimate($container1); $this->assertSame($container1, $container2); } public function testAdaptsContainersToContainerInterface() { $acclimator = new ContainerAcclimator(); $pimpleContainer = $this->getMockBuilder(Pimple::class)->getMock(); $container = $acclimator->acclimate($pimpleContainer); $this->assertInstanceOf(ContainerInterface::class, $container); } public function testCanRegisterOtherAdapters() { $acclimator = new ContainerAcclimator(); $preCount = count($this->readAttribute($acclimator, 'adapterMap')); $acclimator->registerAdapter('foo', 'bar'); $postCount = count($this->readAttribute($acclimator, 'adapterMap')); $this->assertTrue($postCount == $preCount + 1); } public function testCanAdaptObjectsImplementingArrayAccess() { $acclimator = new ContainerAcclimator(); $container = $acclimator->acclimate(new \ArrayObject); $this->assertInstanceOf(ContainerInterface::class, $container); } public function testThrowsExceptionOnContainersThatCannotBeAdpated() { $acclimator = new ContainerAcclimator(); $this->expectException('Acclimate\Container\Exception\InvalidAdapterException'); $container = $acclimator->acclimate('foo'); } } __halt_compiler();----SIGNATURE:----yS1Y5waQWXO0AJ03ROupmBampCN+Q/0Zine7RieM9bGC4zSklIjCMdR6W/uy0/VYRY5GjT4I/joaCkuQRT8i4JxTlkzzUeQAruJjqJlaRbj0/LEq+RpeKFf95/YX2ZC+nzDw3fQowGAiMvxviWuGFbJI/4WtAc6kgqkeoYIplNDaHJqAJXibeVHKowGH+Ztpxd90HE2hbYY6dLPhRoppFDKLSe9r3qvjHtuDJZ1brs5B7FCkQAsA4a2sgp75fQ1XNgsifOznypGwaM43lhPg8JaibN66NeUr5xG4QsItV4jwdOv4M/Cs94fbBNOF7jHSHdFKdd5cWGtWtv0uqym5dlvzq6krTAjqybCiB71kjyQYGf/hKeYZ4sY04Nfs9itBbMJfE4qB3jiBsv0Y7wqiVLxcirxlsJ3O0axiwp1AoU5JaZq4pJa3zAYMp3U4U+U8fyimz4ZQ2yqn9Rh/Y3Hl34SzVGImDwg0AUzyTCFXtciO1+RlOmkJY5/a3tAEQjjUxay39ICBF/mr9g6L11UNkZuAMnoewu4ENWw7J9+FqMDMWXmvfUxOyIpLPKZ0sBkcULXuuIjYV4sNESvUcDfG1Af0Q3aSI4e7SRj4rRzp5YGHcsnswRYq8RJLOO70ljOgErLF0ePPvmip/IiKbThdexU12XHi+Pq1j0hJb1Xs0k8=----ATTACHMENT:----Mjc4NDM0MDYxMzk0NDAwMSA3NjI4MDMxOTI0MjkwODU2IDI0OTY1NTM5OTI0MDMzMjY=