Permalink
Browse files

Templates are only callable in 5.3+

  • Loading branch information...
1 parent 291ca6d commit a47289607ddef757e9c4913c251f40f9c10fa76f @bobthecow committed May 1, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/Mustache/Test/Functional/MustacheSpecTest.php
@@ -39,7 +39,7 @@ public function testSpecInitialized() {
*/
public function testCommentSpec($desc, $source, $partials, $data, $expected) {
$template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template($data), $desc);
+ $this->assertEquals($expected, $template->render($data), $desc);
}
public function loadCommentSpec() {
@@ -52,7 +52,7 @@ public function loadCommentSpec() {
*/
public function testDelimitersSpec($desc, $source, $partials, $data, $expected) {
$template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template($data), $desc);
+ $this->assertEquals($expected, $template->render($data), $desc);
}
public function loadDelimitersSpec() {
@@ -65,7 +65,7 @@ public function loadDelimitersSpec() {
*/
public function testInterpolationSpec($desc, $source, $partials, $data, $expected) {
$template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template($data), $desc);
+ $this->assertEquals($expected, $template->render($data), $desc);
}
public function loadInterpolationSpec() {
@@ -79,7 +79,7 @@ public function loadInterpolationSpec() {
*/
public function testInvertedSpec($desc, $source, $partials, $data, $expected) {
$template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template($data), $desc);
+ $this->assertEquals($expected, $template->render($data), $desc);
}
public function loadInvertedSpec() {
@@ -92,7 +92,7 @@ public function loadInvertedSpec() {
*/
public function testPartialsSpec($desc, $source, $partials, $data, $expected) {
$template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template($data), $desc);
+ $this->assertEquals($expected, $template->render($data), $desc);
}
public function loadPartialsSpec() {
@@ -105,7 +105,7 @@ public function loadPartialsSpec() {
*/
public function testSectionsSpec($desc, $source, $partials, $data, $expected) {
$template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template($data), $desc);
+ $this->assertEquals($expected, $template->render($data), $desc);
}
public function loadSectionsSpec() {

0 comments on commit a472896

Please sign in to comment.