mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
5d4d218942
Upd <extends> tests
17 lines
426 B
PHP
17 lines
426 B
PHP
<?php
|
|
|
|
namespace Cytro;
|
|
|
|
|
|
class CustomProvider extends TestCase {
|
|
|
|
public function setUp() {
|
|
$this->setUp();
|
|
$this->cytro->addProvider("my", new FSProvider(CYTRO_RESOURCES.'/provider'));
|
|
}
|
|
|
|
public function testCustom() {
|
|
$this->render("start: {include 'my:include.tpl'}", 'start: include template');
|
|
$this->render("start: {import 'my:macros.tpl' as ops} {ops.add a=3 b=6}");
|
|
}
|
|
} |