mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
17 lines
445 B
PHP
17 lines
445 B
PHP
|
<?php
|
||
|
|
||
|
namespace Cytro;
|
||
|
|
||
|
|
||
|
class CustomProviderTest extends TestCase {
|
||
|
|
||
|
public function setUp() {
|
||
|
parent::setUp();
|
||
|
$this->cytro->addProvider("my", new FSProvider(CYTRO_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}");
|
||
|
}
|
||
|
}
|