/** * @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()); }
/** * 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(); }