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


PHP MShop_Factory::clear方法代码示例

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


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

示例1: tearDown

 protected function tearDown()
 {
     MShop_Factory::clear();
     MShop_Factory::setCache(false);
     Controller_Frontend_Basket_Factory::createController($this->_context)->clear();
     unset($this->_object);
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:7,代码来源:DefaultTest.php

示例2: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     MShop_Factory::setCache(false);
     MShop_Factory::clear();
     $this->_object = null;
     if (file_exists('tmp/import.zip')) {
         unlink('tmp/import.zip');
     }
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:15,代码来源:DefaultTest.php

示例3: testClearSpecific

 public function testClearSpecific()
 {
     $cache = MShop_Factory::setCache(true);
     $context = TestHelper::getContext();
     $managerA1 = MShop_Factory::createManager($context, 'attribute');
     $managerB1 = MShop_Factory::createManager($context, 'attribute/list/type');
     MShop_Factory::clear((string) $context, 'attribute');
     $managerA2 = MShop_Factory::createManager($context, 'attribute');
     $managerB2 = MShop_Factory::createManager($context, 'attribute/list/type');
     MShop_Factory::setCache($cache);
     $this->assertNotSame($managerA1, $managerA2);
     $this->assertSame($managerB1, $managerB2);
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:13,代码来源:FactoryTest.php

示例4: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     unset($this->_object);
     Controller_Frontend_Factory::clear();
     MShop_Factory::clear();
 }
开发者ID:arcavias,项目名称:arcavias-core,代码行数:12,代码来源:DemoTest.php

示例5: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     unset($this->_object);
     MShop_Factory::clear();
 }
开发者ID:swpierce,项目名称:ext-download,代码行数:11,代码来源:DemoTest.php

示例6: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     $this->_object = null;
     Controller_ExtJS_Factory::clear();
     MShop_Factory::clear();
 }
开发者ID:nos3,项目名称:ai-container,代码行数:12,代码来源:ExcelTest.php

示例7: tearDown

 protected function tearDown()
 {
     MShop_Factory::setCache(false);
     MShop_Factory::clear();
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:5,代码来源:DefaultTest.php

示例8: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     MShop_Factory::setCache(false);
     MShop_Factory::clear();
     $this->_object = null;
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:12,代码来源:DoneTest.php

示例9: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     $this->_object = null;
     MShop_Factory::clear();
 }
开发者ID:arcavias,项目名称:arcavias-core,代码行数:11,代码来源:DefaultTest.php


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