Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed May 4, 2014
1 parent 5d30f6e commit f855ae2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/SurfStack/Templating/Template_Engine_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,13 @@ public function testExtend()
$this->assertSame($content, "<p>Hello world!</p>\n\n<div>\nTest from grandparent\nTest from parent\n</div>\n\n<div>\nSafe from child ".date('Y')."\nSafe from grandparent\n</div>");
}

public function testRenderString()
{
$this->view->setLoadPlugins(true);

$this->assertSame($this->view->getRenderString('{Time}'), date('Y'));
}

public function testNoCacheTemplates()
{
$this->view->setCacheTemplates(false);
Expand Down

0 comments on commit f855ae2

Please sign in to comment.