本文整理匯總了PHP中ilLanguage::expects方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilLanguage::expects方法的具體用法?PHP ilLanguage::expects怎麽用?PHP ilLanguage::expects使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ilLanguage
的用法示例。
在下文中一共展示了ilLanguage::expects方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setUp
/**
*
*/
public function setUp()
{
vfsStreamWrapper::register();
$root = vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
$customizing_dir = vfsStream::newDirectory('Customizing')->at($root);
$this->client_dir = vfsStream::newDirectory('clients/default/agreement')->at($customizing_dir);
$this->global_dir = vfsStream::newDirectory('global/agreement')->at($customizing_dir);
$this->lng = $this->getMockBuilder('ilLanguage')->disableOriginalConstructor()->getMock();
$this->lng->expects($this->any())->method('getLangKey')->will($this->returnValue('de'));
$this->lng->expects($this->any())->method('getDefaultLanguage')->will($this->returnValue('fr'));
$this->source_files = array(vfsStream::url(implode('/', array('root', 'Customizing', 'clients', 'default', 'agreement', 'agreement_' . $this->lng->getLangKey() . '.html'))) => $this->lng->getLangKey(), vfsStream::url(implode('/', array('root', 'Customizing', 'clients', 'default', 'agreement', 'agreement_' . $this->lng->getDefaultLanguage() . '.html'))) => $this->lng->getDefaultLanguage(), vfsStream::url(implode('/', array('root', 'Customizing', 'clients', 'default', 'agreement', 'agreement_en.html'))) => 'en', vfsStream::url(implode('/', array('root', 'Customizing', 'global', 'agreement', 'agreement_' . $this->lng->getLangKey() . '.html'))) => $this->lng->getLangKey(), vfsStream::url(implode('/', array('root', 'Customizing', 'global', 'agreement', 'agreement_' . $this->lng->getDefaultLanguage() . '.html'))) => $this->lng->getDefaultLanguage(), vfsStream::url(implode('/', array('root', 'Customizing', 'global', 'agreement', 'agreement_en.html'))) => 'en');
}