public function testInjectManagerReset() { $manager = MShop_Attribute_Manager_Factory::createManager($this->_context, 'Default'); MShop_Attribute_Manager_Factory::injectManager('MShop_Attribute_Manager_DefaultMock', $manager); MShop_Attribute_Manager_Factory::injectManager('MShop_Attribute_Manager_DefaultMock', null); $this->setExpectedException('MShop_Exception'); MShop_Attribute_Manager_Factory::createManager($this->_context, 'DefaultMock'); }