Fix test failures in PHP 5.2.x

This commit is contained in:
Justin Hileman
2012-05-01 10:19:03 -07:00
parent 74e54cb68e
commit 9316775ccb
2 changed files with 6 additions and 1 deletions
@@ -22,6 +22,11 @@ class Mustache_Test_Functional_HigherOrderSectionsTest extends PHPUnit_Framework
}
public function testAnonymousFunctionSectionCallback() {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
$this->markTestSkipped('Unable to test anonymous function section callbacks in PHP < 5.3');
return;
}
$tpl = $this->mustache->loadTemplate('{{#wrapper}}{{name}}{{/wrapper}}');
$foo = new Mustache_Test_Functional_Foo;