1
0
mirror of https://github.com/fenom-template/fenom.git synced 2023-08-10 21:13:07 +03:00
fenom/tests/cases/Fenom/CustomProviderTest.php
2013-07-29 14:58:14 +04:00

20 lines
453 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->assertRender("start: {include 'my:include.tpl'}", 'start: include template');
//$this->assertRender("start: {import 'my:macros.tpl' as ops} {ops.add a=3 b=6}");
}
}