Ejemplo n.º 1
0
 /**
  * @covers System_Locator_TableLocator::setInstance
  */
 public function testSetInstance()
 {
     $locator = System_Locator_TableLocator::getInstance();
     System_Locator_TableLocator::unsetInstance();
     System_Locator_TableLocator::setInstance($locator);
     self::assertSame($locator, System_Locator_TableLocator::getInstance());
 }
Ejemplo n.º 2
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     System_Locator_TableLocator::unsetInstance();
 }