Fix tests for PHP 5.3

This commit is contained in:
Ivan Shalganov 2014-02-22 20:53:36 +04:00
parent a523d4a4aa
commit d5a9ea5740

View File

@ -10,7 +10,7 @@ class ExtendsTest extends TestCase
public function _testSandbox() public function _testSandbox()
{ {
try { try {
var_dump($this->fenom->getTemplate("extends/static/nested/child.1.tpl")->fetch([])); // var_dump($this->fenom->getTemplate("extends/static/nested/child.1.tpl")->fetch([]));
// var_dump($this->fenom->getTemplate("extends/dynamic/child.2.tpl")->getBody()); // var_dump($this->fenom->getTemplate("extends/dynamic/child.2.tpl")->getBody());
// var_dump($this->fenom->compileCode('{block "main"}a {parent} b{/block}')->getBody()); // var_dump($this->fenom->compileCode('{block "main"}a {parent} b{/block}')->getBody());
// $child = $this->fenom->getRawTemplate()->load('autoextends/child.1.tpl', false); // $child = $this->fenom->getRawTemplate()->load('autoextends/child.1.tpl', false);
@ -47,12 +47,12 @@ Before body
Child 3 content Child 3 content
Before footer Before footer
Footer from use"; Footer from use";
$this->assertSame($result, $this->fenom->fetch([ $this->assertSame($result, $this->fenom->fetch(array(
'extends/auto/child.3.tpl', 'extends/auto/child.3.tpl',
'extends/auto/child.2.tpl', 'extends/auto/child.2.tpl',
'extends/auto/child.1.tpl', 'extends/auto/child.1.tpl',
'extends/auto/parent.tpl', 'extends/auto/parent.tpl',
], array())); ), array()));
} }
public function testStaticExtendLevel1() { public function testStaticExtendLevel1() {