当前位置: 首页>>代码示例>>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;未经允许,请勿转载。