Cleanup. Improves.

This commit is contained in:
bzick
2015-01-07 15:24:57 +03:00
parent d4bfb366b8
commit 22fb471c89
5 changed files with 19 additions and 27 deletions

View File

@ -8,14 +8,13 @@ class SandboxTest extends TestCase {
public function test()
{
// $this->assertEquals([1, 2, 4, "as" => 767, "df" => ["qert"]], [1, 2, 4, "as" => 767, "df" => ["qet"]]);
// $this->fenom->addBlockCompiler('php', 'Fenom\Compiler::nope', function ($tokens, Tag $tag) {
// return '<?php ' . $tag->cutContent();
// });
// $this->tpl('welcome.tpl', '{$a}');
// try {
// var_dump($this->fenom->compileCode('{$.fetch("welcome.tpl", ["a" => 1])}')->getBody());
// var_dump($this->fenom->compileCode('{for $i=0 to 3} {/for}')->getBody());
// } catch (\Exception $e) {
// print_r($e->getMessage() . "\n" . $e->getTraceAsString());
// while ($e->getPrevious()) {