/**
  * @since 2.4
  */
 public function tearDown()
 {
     foreach ($this->configuration as $key => $value) {
         $GLOBALS[$key] = $value;
         $this->applicationFactory->getSettings()->set($key, $value);
     }
     $this->applicationFactory->clear();
     $this->dataValueFactory->clear();
 }
 protected function tearDown()
 {
     ApplicationFactory::clear();
     NamespaceExaminer::clear();
     PropertyRegistry::clear();
     Settings::clear();
     Exporter::getInstance()->clear();
     parent::tearDown();
 }
 /**
  * @dataProvider baseTemplateToolboxDataProvider
  */
 public function testBaseTemplateToolboxURLEncoding($setup, $expected)
 {
     $toolbox = '';
     foreach ($setup['settings'] as $key => $value) {
         ApplicationFactory::getInstance()->getSettings()->set($key, $value);
     }
     $instance = new BaseTemplateToolbox($setup['skinTemplate'], $toolbox);
     $instance->process();
     $this->assertContains($expected, $toolbox['smw-browse']['href']);
     ApplicationFactory::clear();
 }
 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();
 }
 protected function tearDown()
 {
     ApplicationFactory::clear();
     parent::tearDown();
 }
 public function testUpdateStore()
 {
     $store = $this->getMockBuilder('\\SMW\\Store')->disableOriginalConstructor()->setMethods(array('updateData'))->getMockForAbstractClass();
     $store->expects($this->once())->method('updateData');
     ApplicationFactory::getInstance()->registerObject('Store', $store);
     $instance = new ParserData(Title::newFromText(__METHOD__), new ParserOutput());
     $this->assertTrue($instance->updateStore());
     ApplicationFactory::clear();
 }