mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Add licenses
This commit is contained in:
@@ -147,7 +147,7 @@ class ExtendsTemplateTest extends TestCase {
|
||||
// * @group extends
|
||||
// */
|
||||
// public function _testParentLevel() {
|
||||
// //echo($this->aspect->getTemplate("parent.tpl")->_body); exit;
|
||||
// //echo($this->cytro->getTemplate("parent.tpl")->_body); exit;
|
||||
// $this->assertSame($this->cytro->fetch("parent.tpl", array("a" => "a char")), "Parent template\nBlock1: Block2: Block3: default");
|
||||
// }
|
||||
//
|
||||
@@ -155,7 +155,7 @@ class ExtendsTemplateTest extends TestCase {
|
||||
// * @group extends
|
||||
// */
|
||||
// public function testChildLevel1() {
|
||||
// //echo($this->aspect->fetch("child1.tpl", array("a" => "a char"))); exit;
|
||||
// //echo($this->cytro->fetch("child1.tpl", array("a" => "a char"))); exit;
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
|
@@ -17,7 +17,7 @@ class ScopeTest extends TestCase {
|
||||
}
|
||||
|
||||
public function testBlock() {
|
||||
/*$scope = new Scope($this->aspect, new Template($this->aspect), 1, array(
|
||||
/*$scope = new Scope($this->cytro, new Template($this->cytro), 1, array(
|
||||
"open" => array($this, "openTag"),
|
||||
"close" => array($this, "closeTag")
|
||||
), 0);
|
||||
|
@@ -16,7 +16,7 @@ class TemplateTest extends TestCase {
|
||||
}
|
||||
|
||||
/*public function testSandbox() {
|
||||
var_dump($this->aspect->compileCode('{"$s:{$b+1}f d {$d}"}')->_body);
|
||||
var_dump($this->cytro->compileCode('{"$s:{$b+1}f d {$d}"}')->_body);
|
||||
exit;
|
||||
}*/
|
||||
|
||||
|
@@ -36,9 +36,9 @@ class CytroTest extends \Cytro\TestCase {
|
||||
public function testStorage() {
|
||||
$this->tpl('custom.tpl', 'Custom template');
|
||||
$this->assertSame("Custom template", $this->cytro->fetch('custom.tpl', array()));
|
||||
//$this->aspect->clearCompiledTemplate('custom.tpl', false);
|
||||
//$this->cytro->clearCompiledTemplate('custom.tpl', false);
|
||||
|
||||
//$this->assertSame("Custom template", $this->aspect->fetch('custom.tpl', array()));
|
||||
//$this->assertSame("Custom template", $this->cytro->fetch('custom.tpl', array()));
|
||||
|
||||
$this->tpl('custom.tpl', 'Custom template 2');
|
||||
$this->assertSame("Custom template", $this->cytro->fetch('custom.tpl', array()));
|
||||
|
Reference in New Issue
Block a user