public function testClearSpecific() { $cache = Controller_ExtJS_Factory::setCache(true); $context = TestHelper::getContext(); $cntlA1 = Controller_ExtJS_Factory::createController($context, 'attribute'); $cntlB1 = Controller_ExtJS_Factory::createController($context, 'attribute/list/type'); Controller_ExtJS_Factory::clear((string) $context, 'attribute'); $cntlA2 = Controller_ExtJS_Factory::createController($context, 'attribute'); $cntlB2 = Controller_ExtJS_Factory::createController($context, 'attribute/list/type'); Controller_ExtJS_Factory::setCache($cache); $this->assertNotSame($cntlA1, $cntlA2); $this->assertSame($cntlB1, $cntlB2); }
/** * 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(); }
/** * 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_ExtJS_Factory::clear(); MShop_Factory::clear(); }