mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Fixes
Update docs Add {import ... from ...} Improve parsing
This commit is contained in:
@@ -266,7 +266,7 @@ class TemplateTest extends TestCase {
|
||||
public static function providerIncludeInvalid() {
|
||||
return array(
|
||||
array('Include {include} template', 'Aspect\CompileException', "Unexpected end of expression"),
|
||||
array('Include {include another="welcome.tpl"} template', 'Aspect\CompileException', "Unexpected token '=' in expression"),
|
||||
array('Include {include another="welcome.tpl"} template', 'Aspect\CompileException', "Unexpected token '='"),
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -68,6 +68,9 @@ class AspectTest extends \Aspect\TestCase {
|
||||
$this->assertSame("Custom modifier (myMod)Custom(/myMod)", $this->aspect->fetch('custom.tpl', array("a" => "Custom")));
|
||||
}
|
||||
|
||||
/**
|
||||
* @group add_functions
|
||||
*/
|
||||
public function testSetFunctions() {
|
||||
$this->aspect->setOptions(Aspect::FORCE_COMPILE);
|
||||
$this->aspect->addFunction("myfunc", "myFunc");
|
||||
|
Reference in New Issue
Block a user