本文整理汇总了PHP中Mage_Core_Helper_Abstract::expects方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Helper_Abstract::expects方法的具体用法?PHP Mage_Core_Helper_Abstract::expects怎么用?PHP Mage_Core_Helper_Abstract::expects使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Helper_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Helper_Abstract::expects方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
$this->_config = new Mage_Core_Model_Config(<<<XML
<config>
<global>
<cache>
<types>
<single_tag>
<label>Tag One</label>
<description>This is Tag One</description>
<tags>tag_one</tags>
</single_tag>
<multiple_tags>
<label>Tags One and Two</label>
<description>These are Tags One and Two</description>
<tags>tag_one,tag_two</tags>
</multiple_tags>
</types>
</cache>
</global>
</config>
XML
);
$this->_helper = $this->getMock('Mage_Core_Helper_Data', array('__'));
$this->_helper->expects($this->any())->method('__')->will($this->returnArgument(0));
$this->_config->setOptions(array('cache_dir' => __DIR__, 'etc_dir' => __DIR__));
$this->_cacheFrontend = $this->getMock('Zend_Cache_Core', array('load', 'test', 'save', 'remove', 'clean', '_getHelper'));
$this->_requestProcessor = $this->getMock('stdClass', array('extractContent'));
$this->_model = new Mage_Core_Model_Cache(array('config' => $this->_config, 'helper' => $this->_helper, 'frontend' => $this->_cacheFrontend, 'backend' => 'BlackHole', 'request_processors' => array($this->_requestProcessor)));
}
示例2: setUp
protected function setUp()
{
$this->_helper = $this->getMock('Mage_Core_Helper_Abstract', array('_getModuleName'));
$this->_helper->expects($this->any())->method('_getModuleName')->will($this->returnValue('Mage_Core'));
}