本文整理汇总了PHP中SmartyTests::smartyBC方法的典型用法代码示例。如果您正苦于以下问题:PHP SmartyTests::smartyBC方法的具体用法?PHP SmartyTests::smartyBC怎么用?PHP SmartyTests::smartyBC使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SmartyTests
的用法示例。
在下文中一共展示了SmartyTests::smartyBC方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clearFiles
{
return SmartyTests::_init($smarty);
}
protected function clearFiles()
{
SmartyTests::clearFiles();
}
}
class _object_toString
{
protected $string = null;
public function __construct($string)
{
$this->string = (string) $string;
}
public function __toString()
{
return $this->string;
}
}
class _object_noString
{
protected $string = null;
public function __construct($string)
{
$this->string = (string) $string;
}
}
SmartyTests::$smarty = new \Box\Brainy\Brainy();
SmartyTests::$smartyBC = new \Box\Brainy\SmartyBC();
ini_set('date.timezone', 'UTC');
示例2: __construct
public function __construct()
{
SmartyTests::$smarty = new Smarty();
SmartyTests::$smartyBC = new SmartyBC();
}
示例3: assertFalse
}
}
public function assertFalse($a)
{
if ($a !== false) {
$this->error();
echo '<br>result was not false';
}
}
public function assertTrue($a)
{
if ($a !== true) {
$this->error();
echo '<br>result was not true';
}
}
public function assertNull($a)
{
if ($a !== null) {
$this->error();
echo '<br>result was not "null"';
}
}
public function error()
{
echo '<br><br><br>ERROR in test: ' . get_class($this) . '::' . $this->current_function;
$this->error_functions[] = $this->current_function;
}
}
SmartyTests::$smartyBC = new SmartyBC();
SmartyTests::$smarty = new Smarty();