当前位置: 首页>>代码示例>>PHP>>正文


PHP SmartyTests类代码示例

本文整理汇总了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;
 }
开发者ID:xiaobudongzhang,项目名称:brainy,代码行数:7,代码来源:CompileIncludeTest.php

示例2: setUp

 public function setUp()
 {
     $this->smarty = SmartyTests::$smarty;
     SmartyTests::init();
     $this->smarty->clearCompiledTemplate();
     $this->smarty->loadFilter('output', 'trimwhitespace');
 }
开发者ID:xiaobudongzhang,项目名称:brainy,代码行数:7,代码来源:OutputFilterTrimWhitespaceTest.php

示例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);
 }
开发者ID:xiaobudongzhang,项目名称:brainy,代码行数:7,代码来源:EnforceModifierTest.php

示例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');
 }
开发者ID:mrsank,项目名称:work_sample,代码行数:7,代码来源:ExtendsResourceTests.php

示例5: setUp

 public function setUp()
 {
     $this->smarty = SmartyTests::$smarty;
     SmartyTests::init();
     $this->smarty->force_compile = true;
     $this->smarty->disableSecurity();
 }
开发者ID:mrsank,项目名称:work_sample,代码行数:7,代码来源:DefaultTemplateHandlerTests.php

示例6: setUp

 public function setUp()
 {
     $this->smarty = SmartyTests::$smarty;
     $this->smarty->clearAllCache();
     $this->smarty->clearCompiledTemplate();
     SmartyTests::init();
 }
开发者ID:mrsank,项目名称:work_sample,代码行数:7,代码来源:StringResourceTests.php

示例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);
 }
开发者ID:xiaobudongzhang,项目名称:brainy,代码行数:7,代码来源:PluginFunctionHtmlSelectDateTest.php

示例8: setUp

 public function setUp()
 {
     $this->smarty = SmartyTests::$smarty;
     SmartyTests::init();
     $this->smarty->caching_type = 'mysqltest';
     $this->smarty->addPluginsDir(dirname(__FILE__) . "/PHPunitplugins/");
 }
开发者ID:mrsank,项目名称:work_sample,代码行数:7,代码来源:CacheResourceCustomMysqlTests.php

示例9: setUp

 public function setUp()
 {
     $this->smarty = SmartyTests::$smarty;
     // reset cache for unit test
     Smarty_Resource::$resources = array();
     SmartyTests::init();
 }
开发者ID:jjs180,项目名称:dance-america,代码行数:7,代码来源:ResourcePluginTests.php

示例10: setUp

 public function setUp()
 {
     $this->smarty = SmartyTests::$smarty;
     SmartyTests::init();
     $this->smarty->force_compile = true;
     $this->smarty->security_policy = null;
 }
开发者ID:xiaobudongzhang,项目名称:brainy,代码行数:7,代码来源:DefaultConfigHandlerTest.php

示例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');
 }
开发者ID:xiaobudongzhang,项目名称:brainy,代码行数:7,代码来源:VariableScopeTest.php

示例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;
 }
开发者ID:xiaobudongzhang,项目名称:brainy,代码行数:8,代码来源:RegisterBlockTest.php

示例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');
 }
开发者ID:mrsank,项目名称:work_sample,代码行数:8,代码来源:DefaultPluginHandlerTests.php

示例14: setUp

 public function setUp()
 {
     $this->smarty = SmartyTests::$smarty;
     $this->smartyBC = SmartyTests::$smartyBC;
     SmartyTests::init();
     $this->smarty->disableSecurity();
     $this->smartyBC->disableSecurity();
 }
开发者ID:jjs180,项目名称:dance-america,代码行数:8,代码来源:RegisterBlockTests.php

示例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');
 }
开发者ID:jjs180,项目名称:dance-america,代码行数:9,代码来源:CompileRegisteredObjectFunctionTests.php


注:本文中的SmartyTests类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。