當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tests\MwDBaseUnitTestCase類代碼示例

本文整理匯總了PHP中SMW\Tests\MwDBaseUnitTestCase的典型用法代碼示例。如果您正苦於以下問題:PHP MwDBaseUnitTestCase類的具體用法?PHP MwDBaseUnitTestCase怎麽用?PHP MwDBaseUnitTestCase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了MwDBaseUnitTestCase類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 protected function tearDown()
 {
     $this->pageDeleter->doDeletePoolOfPages($this->deletePoolOfPages);
     $this->applicationFactory->clear();
     $this->mwHooksHandler->restoreListedHooks();
     parent::tearDown();
 }
開發者ID:Rikuforever,項目名稱:wiki,代碼行數:7,代碼來源:JobQueueDBIntegrationTest.php

示例2: tearDown

 protected function tearDown()
 {
     foreach ($this->subjectsToBeCleared as $subject) {
         $this->getStore()->deleteSubject($subject->getTitle());
     }
     parent::tearDown();
 }
開發者ID:jongfeli,項目名稱:SemanticMediaWiki,代碼行數:7,代碼來源:GeneralQueryDBIntegrationTest.php

示例3: tearDown

 protected function tearDown()
 {
     $pageDeleter = UtilityFactory::getInstance()->newPageDeleter();
     $pageDeleter->doDeletePoolOfPages($this->subjects);
     $this->mwHooksHandler->restoreListedHooks();
     parent::tearDown();
 }
開發者ID:WolfgangFahl,項目名稱:SemanticMediaWiki,代碼行數:7,代碼來源:SemanticDataSortKeyUpdateDBIntegrationTest.php

示例4: tearDown

 protected function tearDown()
 {
     ApplicationFactory::getInstance()->clear();
     $pageDeleter = UtilityFactory::getInstance()->newPageDeleter();
     $pageDeleter->doDeletePoolOfPages($this->importedTitles);
     parent::tearDown();
 }
開發者ID:WolfgangFahl,項目名稱:SemanticMediaWiki,代碼行數:7,代碼來源:DumpRdfMaintenanceTest.php

示例5: tearDown

 protected function tearDown()
 {
     $GLOBALS['wgEnableUploads'] = $this->wgEnableUploads;
     $GLOBALS['wgFileExtensions'] = $this->wgFileExtensions;
     $GLOBALS['wgVerifyMimeType'] = $this->wgVerifyMimeType;
     parent::tearDown();
 }
開發者ID:WolfgangFahl,項目名稱:SemanticMediaWiki,代碼行數:7,代碼來源:RdfFileResourceTest.php

示例6: setUp

 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();
 }
開發者ID:jongfeli,項目名稱:SemanticMediaWiki,代碼行數:25,代碼來源:QueryEngineBenchmark.php

示例7: tearDown

 protected function tearDown()
 {
     if ($this->deleteAfterState) {
         UtilityFactory::getInstance()->newPageDeleter()->doDeletePoolOfPages($this->itemsMarkedForDeletion);
     }
     $this->restoreSettingsBeforeLocalChange();
     parent::tearDown();
 }
開發者ID:ReachingOut,項目名稱:SemanticMediaWiki,代碼行數:8,代碼來源:ByJsonTestCaseProvider.php

示例8: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->apiFactory = new MwApiFactory();
     $this->dataValueFactory = DataValueFactory::getInstance();
     $this->serializerFactory = new SerializerFactory();
     $this->semanticDataFactory = new SemanticDataFactory();
 }
開發者ID:hangya,項目名稱:SemanticMediaWiki,代碼行數:8,代碼來源:ApiBrowseBySubjectDBIntegrationTest.php

示例9: tearDown

 protected function tearDown()
 {
     $this->mwHooksHandler->restoreListedHooks();
     $GLOBALS['wgEnableUploads'] = $this->wgEnableUploads;
     $GLOBALS['wgFileExtensions'] = $this->wgFileExtensions;
     $GLOBALS['wgVerifyMimeType'] = $this->wgVerifyMimeType;
     parent::tearDown();
 }
開發者ID:WolfgangFahl,項目名稱:SemanticMediaWiki,代碼行數:8,代碼來源:FileUploadIntegrationTest.php

示例10: tearDown

 public function tearDown()
 {
     $this->mwHooksHandler->restoreListedHooks();
     if ($this->title !== null) {
         $this->pageDeleter->deletePage($this->title);
     }
     parent::tearDown();
 }
開發者ID:jongfeli,項目名稱:SemanticMediaWiki,代碼行數:8,代碼來源:RefreshSQLStoreDBIntegrationTest.php

示例11: tearDown

 public function tearDown()
 {
     $this->applicationFactory->clear();
     $this->mwHooksHandler->restoreListedHooks();
     $this->testEnvironment->flushPages(array($this->title));
     $this->testEnvironment->tearDown();
     parent::tearDown();
 }
開發者ID:jongfeli,項目名稱:SemanticMediaWiki,代碼行數:8,代碼來源:LinksUpdateTest.php

示例12: tearDown

 protected function tearDown()
 {
     $pageDeleter = new PageDeleter();
     foreach ($this->titles as $title) {
         $pageDeleter->deletePage($title);
     }
     parent::tearDown();
 }
開發者ID:whysasse,項目名稱:kmwiki,代碼行數:8,代碼來源:ParserFunctionInPageEmbeddedForQueryResultLookupDBIntegrationTest.php

示例13: tearDown

 protected function tearDown()
 {
     if ($this->deletePagesOnTearDown) {
         $this->testEnvironment->flushPages($this->itemsMarkedForDeletion);
     }
     $this->testEnvironment->tearDown();
     parent::tearDown();
 }
開發者ID:jongfeli,項目名稱:SemanticMediaWiki,代碼行數:8,代碼來源:ByJsonTestCaseProvider.php

示例14: setUp

 protected function setUp()
 {
     parent::setUp();
     // Variable set using phpunit.xml
     if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
         $this->showMemoryUsage = $GLOBALS['benchmarkShowMemoryUsage'];
     }
     $this->benchmarkRunner = new BenchmarkRunner($this->showMemoryUsage);
 }
開發者ID:WolfgangFahl,項目名稱:SemanticMediaWiki,代碼行數:9,代碼來源:PageEditBenchmarkTest.php

示例15: setUp

 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();
 }
開發者ID:WolfgangFahl,項目名稱:SemanticMediaWiki,代碼行數:16,代碼來源:ImportPageCopyBenchmarkTest.php


注:本文中的SMW\Tests\MwDBaseUnitTestCase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。