Fix test failures in PHP 5.2.x
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
/**
|
/**
|
||||||
* @group unit
|
* @group unit
|
||||||
*/
|
*/
|
||||||
class Mustache_Test_CompilerTest extends \PHPUnit_Framework_TestCase {
|
class Mustache_Test_CompilerTest extends PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider getCompileValues
|
* @dataProvider getCompileValues
|
||||||
|
|||||||
@@ -22,6 +22,11 @@ class Mustache_Test_Functional_HigherOrderSectionsTest extends PHPUnit_Framework
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function testAnonymousFunctionSectionCallback() {
|
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}}');
|
$tpl = $this->mustache->loadTemplate('{{#wrapper}}{{name}}{{/wrapper}}');
|
||||||
|
|
||||||
$foo = new Mustache_Test_Functional_Foo;
|
$foo = new Mustache_Test_Functional_Foo;
|
||||||
|
|||||||
Reference in New Issue
Block a user