getInstance() public static method

Retrieves the default registry instance.
public static getInstance ( ) : Registry
return Registry
Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testSetInstance()
 {
     $this->object->unsetInstance();
     $this->object->setInstance(new Registry());
     $this->assertInstanceOf('Gc\\Registry', Registry::getInstance());
 }