fenom/tests/cases/Fenom/CustomProviderTest.php
Ivan Shalganov 2fc84c226e Add tests
2013-09-14 11:24:23 +04:00

22 lines
609 B
PHP

<?php
namespace Fenom;
class CustomProviderTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->fenom->addProvider("my", new Provider(FENOM_RESOURCES . '/provider'));
}
public function testCustom()
{
$this->assertTrue($this->fenom->templateExists('my:include.tpl'));
$this->assertFalse($this->fenom->templateExists('my:include-none.tpl'));
$this->assertRender("start: {include 'my:include.tpl'}", 'start: include template');
//$this->assertRender("start: {import 'my:macros.tpl' as ops} {ops.add a=3 b=6}");
}
}