當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SmartyTests::init方法代碼示例

本文整理匯總了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;
 }
開發者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;
     SmartyTests::init();
     $this->smarty->safe_lookups = \Box\Brainy\Brainy::LOOKUP_SAFE;
     $this->smarty->assign('foo', 'bar');
 }
開發者ID:xiaobudongzhang,項目名稱:brainy,代碼行數:7,代碼來源:VariableScopeTest.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;
     $this->smarty->clearAllCache();
     $this->smarty->clearCompiledTemplate();
     SmartyTests::init();
 }
開發者ID:mrsank,項目名稱:work_sample,代碼行數:7,代碼來源:StringResourceTests.php

示例9: 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

示例10: 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

示例11: 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

示例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;
     $this->smartyBC =& SmartyTests::$smartyBC;
     SmartyTests::init();
     $this->smarty->escape_html = true;
     $this->smartyBC->escape_html = true;
     parent::setUp();
 }
開發者ID:xiaobudongzhang,項目名稱:brainy,代碼行數:9,代碼來源:bootstrap.php


注:本文中的SmartyTests::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。