protected function tearDown()
 {
     $this->pageDeleter->doDeletePoolOfPages($this->deletePoolOfPages);
     $this->applicationFactory->clear();
     $this->mwHooksHandler->restoreListedHooks();
     parent::tearDown();
 }
 protected function tearDown()
 {
     foreach ($this->subjectsToBeCleared as $subject) {
         $this->getStore()->deleteSubject($subject->getTitle());
     }
     parent::tearDown();
 }
 protected function tearDown()
 {
     $pageDeleter = UtilityFactory::getInstance()->newPageDeleter();
     $pageDeleter->doDeletePoolOfPages($this->subjects);
     $this->mwHooksHandler->restoreListedHooks();
     parent::tearDown();
 }
 protected function tearDown()
 {
     ApplicationFactory::getInstance()->clear();
     $pageDeleter = UtilityFactory::getInstance()->newPageDeleter();
     $pageDeleter->doDeletePoolOfPages($this->importedTitles);
     parent::tearDown();
 }
 protected function tearDown()
 {
     $GLOBALS['wgEnableUploads'] = $this->wgEnableUploads;
     $GLOBALS['wgFileExtensions'] = $this->wgFileExtensions;
     $GLOBALS['wgVerifyMimeType'] = $this->wgVerifyMimeType;
     parent::tearDown();
 }
 protected function setUp()
 {
     parent::setUp();
     // Variable set using phpunit.xml
     if (isset($GLOBALS['benchmarkQueryRepetitionExecutionThreshold'])) {
         $this->repetitionExecutionThreshold = $GLOBALS['benchmarkQueryRepetitionExecutionThreshold'];
     }
     if (isset($GLOBALS['benchmarkPageCopyThreshold'])) {
         $this->pageCopyThreshold = $GLOBALS['benchmarkPageCopyThreshold'];
     }
     if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
         $this->showMemoryUsage = (bool) $GLOBALS['benchmarkShowMemoryUsage'];
     }
     if (isset($GLOBALS['benchmarkQueryLimit'])) {
         $this->queryLimit = $GLOBALS['benchmarkQueryLimit'];
     }
     if (isset($GLOBALS['benchmarkQueryOffset'])) {
         $this->queryOffset = $GLOBALS['benchmarkQueryOffset'];
     }
     if (isset($GLOBALS['benchmarkReuseDatasets'])) {
         $this->reuseDatasets = $GLOBALS['benchmarkReuseDatasets'];
     }
     $this->queryParser = new QueryParser();
     $this->benchmarkRunner = new BenchmarkRunner();
 }
 protected function tearDown()
 {
     if ($this->deleteAfterState) {
         UtilityFactory::getInstance()->newPageDeleter()->doDeletePoolOfPages($this->itemsMarkedForDeletion);
     }
     $this->restoreSettingsBeforeLocalChange();
     parent::tearDown();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->apiFactory = new MwApiFactory();
     $this->dataValueFactory = DataValueFactory::getInstance();
     $this->serializerFactory = new SerializerFactory();
     $this->semanticDataFactory = new SemanticDataFactory();
 }
 protected function tearDown()
 {
     $this->mwHooksHandler->restoreListedHooks();
     $GLOBALS['wgEnableUploads'] = $this->wgEnableUploads;
     $GLOBALS['wgFileExtensions'] = $this->wgFileExtensions;
     $GLOBALS['wgVerifyMimeType'] = $this->wgVerifyMimeType;
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->mwHooksHandler->restoreListedHooks();
     if ($this->title !== null) {
         $this->pageDeleter->deletePage($this->title);
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->applicationFactory->clear();
     $this->mwHooksHandler->restoreListedHooks();
     $this->testEnvironment->flushPages(array($this->title));
     $this->testEnvironment->tearDown();
     parent::tearDown();
 }
 protected function tearDown()
 {
     $pageDeleter = new PageDeleter();
     foreach ($this->titles as $title) {
         $pageDeleter->deletePage($title);
     }
     parent::tearDown();
 }
 protected function tearDown()
 {
     if ($this->deletePagesOnTearDown) {
         $this->testEnvironment->flushPages($this->itemsMarkedForDeletion);
     }
     $this->testEnvironment->tearDown();
     parent::tearDown();
 }
 protected function setUp()
 {
     parent::setUp();
     // Variable set using phpunit.xml
     if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
         $this->showMemoryUsage = $GLOBALS['benchmarkShowMemoryUsage'];
     }
     $this->benchmarkRunner = new BenchmarkRunner($this->showMemoryUsage);
 }
 protected function setUp()
 {
     parent::setUp();
     // Variable set using phpunit.xml
     if (isset($GLOBALS['benchmarkPageCopyThreshold'])) {
         $this->pageCopyThreshold = $GLOBALS['benchmarkPageCopyThreshold'];
     }
     if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
         $this->showMemoryUsage = $GLOBALS['benchmarkShowMemoryUsage'];
     }
     if (isset($GLOBALS['benchmarkReuseDatasets'])) {
         $this->reuseDatasets = $GLOBALS['benchmarkReuseDatasets'];
     }
     $this->benchmarkRunner = new BenchmarkRunner($this->showMemoryUsage);
     //$this->getStore()->getConnection( 'sparql' )->deleteAll();
 }
 protected function setUp()
 {
     parent::setUp();
     // Variable set using phpunit.xml
     if (isset($GLOBALS['benchmarkPageCopyThreshold'])) {
         $this->pageCopyThreshold = $GLOBALS['benchmarkPageCopyThreshold'];
     }
     if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
         $this->showMemoryUsage = $GLOBALS['benchmarkShowMemoryUsage'];
     }
     if (isset($GLOBALS['benchmarkReuseDatasets'])) {
         $this->reuseDatasets = $GLOBALS['benchmarkReuseDatasets'];
     }
     $this->benchmarkRunner = new BenchmarkRunner();
     $this->runnerFactory = UtilityFactory::getInstance()->newRunnerFactory();
 }
 protected function tearDown()
 {
     UtilityFactory::getInstance()->newPageDeleter()->doDeletePoolOfPages($this->subjects);
     $GLOBALS['smwgNamespace'] = $this->smwgNamespace;
     parent::tearDown();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->pageCreator = UtilityFactory::getInstance()->newPageCreator();
     $this->semanticDataValidator = UtilityFactory::getInstance()->newValidatorFactory()->newSemanticDataValidator();
 }
 protected function tearDown()
 {
     UtilityFactory::getInstance()->newPageDeleter()->doDeletePoolOfPages($this->subjects);
     unset($GLOBALS['wgHooks']['InterwikiLoadPrefix']);
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->testEnvironment->tearDown();
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->mwHooksHandler->restoreListedHooks();
     $this->testEnvironment->tearDown();
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->applicationFactory->clear();
     $this->mwHooksHandler->restoreListedHooks();
     parent::tearDown();
 }
 protected function tearDown()
 {
     $pageDeleter = UtilityFactory::getInstance()->newPageDeleter();
     $pageDeleter->doDeletePoolOfPages($this->deletePoolOfPages);
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
 }
 protected function tearDown()
 {
     $pageDeleter = new PageDeleter();
     $pageDeleter->deletePage($this->title);
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->testEnvironment->flushPages($this->importedTitles);
     parent::tearDown();
 }
 protected function tearDown()
 {
     $fixturesCleaner = UtilityFactory::getInstance()->newFixturesFactory()->newFixturesCleaner();
     $fixturesCleaner->purgeAllKnownFacts()->purgeSubjects($this->subjects);
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->mwHooksHandler->restoreListedHooks();
     parent::tearDown();
 }