Add licenses

This commit is contained in:
bzick
2013-04-28 18:08:57 +04:00
parent 614428e88d
commit 5a1097d5a6
22 changed files with 91 additions and 47 deletions

View File

@@ -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;
// }
//
// /**

View File

@@ -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);

View File

@@ -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;
}*/

View File

@@ -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()));