当前位置: 首页>>代码示例>>PHP>>正文


PHP ApplicationFactory::clear方法代码示例

本文整理汇总了PHP中SMW\ApplicationFactory::clear方法的典型用法代码示例。如果您正苦于以下问题:PHP ApplicationFactory::clear方法的具体用法?PHP ApplicationFactory::clear怎么用?PHP ApplicationFactory::clear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SMW\ApplicationFactory的用法示例。


在下文中一共展示了ApplicationFactory::clear方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 /**
  * @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();
 }
开发者ID:jongfeli,项目名称:SemanticMediaWiki,代码行数:12,代码来源:TestEnvironment.php

示例2: tearDown

 protected function tearDown()
 {
     ApplicationFactory::clear();
     NamespaceExaminer::clear();
     PropertyRegistry::clear();
     Settings::clear();
     Exporter::getInstance()->clear();
     parent::tearDown();
 }
开发者ID:brandonphuong,项目名称:mediawiki,代码行数:9,代码来源:MwDBaseUnitTestCase.php

示例3: testBaseTemplateToolboxURLEncoding

 /**
  * @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();
 }
开发者ID:jongfeli,项目名称:SemanticMediaWiki,代码行数:14,代码来源:EncodingIntegrationTest.php

示例4: 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();
 }
开发者ID:jongfeli,项目名称:SemanticMediaWiki,代码行数:13,代码来源:MwDBaseUnitTestCase.php

示例5: tearDown

 protected function tearDown()
 {
     ApplicationFactory::clear();
     parent::tearDown();
 }
开发者ID:WolfgangFahl,项目名称:SemanticMediaWiki,代码行数:5,代码来源:SpecialStatsAddExtraTest.php

示例6: testUpdateStore

 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();
 }
开发者ID:WolfgangFahl,项目名称:SemanticMediaWiki,代码行数:9,代码来源:ParserDataTest.php


注:本文中的SMW\ApplicationFactory::clear方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。