Add custom additionally options for template

This commit is contained in:
bzick
2013-03-18 00:35:20 +04:00
parent bd056bf75b
commit 3fe541029c
3 changed files with 34 additions and 23 deletions

View File

@ -645,6 +645,7 @@ class TemplateTest extends TestCase {
}
/**
* @group include
* @dataProvider providerInclude
*/
public function testInclude($code, $vars, $result) {

View File

@ -36,9 +36,9 @@ class AspectTest extends \Aspect\TestCase {
public function testStorage() {
$this->tpl('custom.tpl', 'Custom template');
$this->assertSame("Custom template", $this->aspect->fetch('custom.tpl', array()));
$this->aspect->clearCompiledTemplate('custom.tpl', false);
//$this->aspect->clearCompiledTemplate('custom.tpl', false);
$this->assertSame("Custom template", $this->aspect->fetch('custom.tpl', array()));
//$this->assertSame("Custom template", $this->aspect->fetch('custom.tpl', array()));
$this->tpl('custom.tpl', 'Custom template 2');
$this->assertSame("Custom template", $this->aspect->fetch('custom.tpl', array()));