本文整理汇总了PHP中SmartyTests::init方法的典型用法代码示例。如果您正苦于以下问题:PHP SmartyTests::init方法的具体用法?PHP SmartyTests::init怎么用?PHP SmartyTests::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SmartyTests
的用法示例。
在下文中一共展示了SmartyTests::init方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->force_compile = true;
$this->smarty->safe_lookups = \Box\Brainy\Brainy::LOOKUP_SAFE;
}
示例2: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->clearCompiledTemplate();
$this->smarty->loadFilter('output', 'trimwhitespace');
}
示例3: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
// We want to show all errors for this test suite.
error_reporting(E_ALL);
}
示例4: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->setTemplateDir(array('./templates/extendsresource/', './templates/'));
// $this->smarty->registerFilter(Smarty::FILTER_PRE,'prefilterextends');
}
示例5: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->force_compile = true;
$this->smarty->disableSecurity();
}
示例6: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->safe_lookups = \Box\Brainy\Brainy::LOOKUP_SAFE;
$this->smarty->assign('foo', 'bar');
}
示例7: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->now = mktime(15, 0, 0, 2, 20, 2014);
$this->now_rel = mktime(15, 0, 0, 2, 20, 2014);
}
示例8: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
$this->smarty->clearAllCache();
$this->smarty->clearCompiledTemplate();
SmartyTests::init();
}
示例9: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->caching_type = 'mysqltest';
$this->smarty->addPluginsDir(dirname(__FILE__) . "/PHPunitplugins/");
}
示例10: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
// reset cache for unit test
Smarty_Resource::$resources = array();
SmartyTests::init();
}
示例11: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->force_compile = true;
$this->smarty->security_policy = null;
}
示例12: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
$this->smartyBC = SmartyTests::$smartyBC;
SmartyTests::init();
$this->smarty->security_policy = null;
$this->smartyBC->security_policy = null;
}
示例13: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->force_compile = true;
$this->smarty->disableSecurity();
$this->smarty->registerDefaultPluginHandler('my_plugin_handler');
}
示例14: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
$this->smartyBC = SmartyTests::$smartyBC;
SmartyTests::init();
$this->smarty->disableSecurity();
$this->smartyBC->disableSecurity();
}
示例15: setUp
public function setUp()
{
$this->smarty =& SmartyTests::$smarty;
$this->smartyBC =& SmartyTests::$smartyBC;
SmartyTests::init();
$this->smarty->escape_html = true;
$this->smartyBC->escape_html = true;
parent::setUp();
}