Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only PHP >= 5.3.0 can call templates directly.

  • Loading branch information...
commit 01351077692ff1f3b2cd25f4812aee5e131259f3 1 parent 36fbb28
@bobthecow authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/Mustache/Test/TemplateTest.php
View
5 test/Mustache/Test/TemplateTest.php
@@ -26,7 +26,10 @@ public function testRendering() {
$template->rendered = $rendered;
$context = new Mustache_Context;
- $this->assertEquals($rendered, $template());
+ if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
+ $this->assertEquals($rendered, $template());
+ }
+
$this->assertEquals($rendered, $template->render());
$this->assertEquals($rendered, $template->renderInternal($context));
$this->assertEquals($rendered, $template->render(array('foo' => 'bar')));
Please sign in to comment.
Something went wrong with that request. Please try again.