mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
d096a80395
Also small performance fix
23 lines
602 B
PHP
23 lines
602 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->assertTrue($this->fenom->getTemplate('my:include.tpl')->isValid());
|
|
}
|
|
|
|
} |