本文整理匯總了PHP中SmartyTests類的典型用法代碼示例。如果您正苦於以下問題:PHP SmartyTests類的具體用法?PHP SmartyTests怎麽用?PHP SmartyTests使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了SmartyTests類的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;
$this->smarty->clearAllCache();
$this->smarty->clearCompiledTemplate();
SmartyTests::init();
}
示例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;
SmartyTests::init();
$this->smarty->caching_type = 'mysqltest';
$this->smarty->addPluginsDir(dirname(__FILE__) . "/PHPunitplugins/");
}
示例9: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
// reset cache for unit test
Smarty_Resource::$resources = array();
SmartyTests::init();
}
示例10: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->force_compile = true;
$this->smarty->security_policy = null;
}
示例11: setUp
public function setUp()
{
$this->smarty = SmartyTests::$smarty;
SmartyTests::init();
$this->smarty->safe_lookups = \Box\Brainy\Brainy::LOOKUP_SAFE;
$this->smarty->assign('foo', 'bar');
}
示例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;
SmartyTests::init();
$this->smarty->force_compile = true;
$this->smarty->disableSecurity();
$this->object = new RegObject();
$this->smarty->registerObject('objecttest', $this->object, 'myhello', true, 'myblock');
}