public function testGetInstance() { $instance = NamespaceExaminer::getInstance(); $this->assertSame($instance, NamespaceExaminer::getInstance()); NamespaceExaminer::clear(); $this->assertNotSame($instance, NamespaceExaminer::getInstance()); }
protected function tearDown() { ApplicationFactory::clear(); NamespaceExaminer::clear(); PropertyRegistry::clear(); Settings::clear(); Exporter::getInstance()->clear(); parent::tearDown(); }
protected function tearDown() { // If setUp is skipped early this might not be initialized if ($this->testEnvironment !== null) { $this->testEnvironment->tearDown(); } ApplicationFactory::clear(); NamespaceExaminer::clear(); PropertyRegistry::clear(); Settings::clear(); Exporter::getInstance()->clear(); parent::tearDown(); }