public function testCustomObjectCreator() { $injector = new Injector(); $injector->setObjectCreator(new SSObjectCreator($injector)); $config = array('OriginalRequirementsBackend', 'DummyRequirements' => array('class' => 'DummyRequirements(\'%$OriginalRequirementsBackend\')')); $injector->load($config); $requirements = $injector->get('DummyRequirements'); $this->assertEquals('OriginalRequirementsBackend', get_class($requirements->backend)); }