Set the default registry instance to a specified instance.
public static setInstance ( |
||
$registry | An object instance of type Registry, or a subclass. | |
return | void |
/** * Test * * @return void */ public function testSetInstanceWithRegistryAlreadyInitialized() { $this->setExpectedException('RuntimeException'); $this->object->setInstance(new Registry()); }