fenom/tests/cases/Fenom/CustomProviderTest.php

20 lines
453 B
PHP
Raw Normal View History

<?php
2013-06-28 11:53:53 +04:00
namespace Fenom;
2013-07-29 14:58:14 +04:00
class CustomProviderTest extends TestCase
{
2013-07-29 14:58:14 +04:00
public function setUp()
{
parent::setUp();
2013-07-29 14:58:14 +04:00
$this->fenom->addProvider("my", new Provider(FENOM_RESOURCES . '/provider'));
}
2013-07-29 14:58:14 +04:00
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}");
}
}