Comment out lambda tests.
Lambdas aren't currently implemented in Mustache.php, and the parser we're using doesn't like the lambdas yaml file so it's throwing exceptions :(
This commit is contained in:
+17
-17
@@ -57,20 +57,20 @@ class MustacheSpecTest extends PHPUnit_Framework_TestCase {
|
|||||||
$this->assertEquals($expected, $m->render(), $desc);
|
$this->assertEquals($expected, $m->render(), $desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* @group lambdas
|
// * @group lambdas
|
||||||
* @dataProvider loadLambdasSpec
|
// * @dataProvider loadLambdasSpec
|
||||||
*/
|
// */
|
||||||
public function testLambdasSpec($template, $data, $partials, $expected, $desc) {
|
// public function testLambdasSpec($template, $data, $partials, $expected, $desc) {
|
||||||
$this->markTestSkipped("Lambdas for PHP haven't made it into the spec yet, so we'll skip them to avoid a bajillion failed tests.");
|
// $this->markTestSkipped("Lambdas for PHP haven't made it into the spec yet, so we'll skip them to avoid a bajillion failed tests.");
|
||||||
|
//
|
||||||
if (!version_compare(PHP_VERSION, '5.3.0', '>=')) {
|
// if (!version_compare(PHP_VERSION, '5.3.0', '>=')) {
|
||||||
$this->markTestSkipped('Unable to test Lambdas spec with PHP < 5.3.');
|
// $this->markTestSkipped('Unable to test Lambdas spec with PHP < 5.3.');
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
$m = new Mustache($template, $data, $partials);
|
// $m = new Mustache($template, $data, $partials);
|
||||||
$this->assertEquals($expected, $m->render(), $desc);
|
// $this->assertEquals($expected, $m->render(), $desc);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group partials
|
* @group partials
|
||||||
@@ -106,9 +106,9 @@ class MustacheSpecTest extends PHPUnit_Framework_TestCase {
|
|||||||
return $this->loadSpec('inverted');
|
return $this->loadSpec('inverted');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadLambdasSpec() {
|
// public function loadLambdasSpec() {
|
||||||
return $this->loadSpec('lambdas');
|
// return $this->loadSpec('lambdas');
|
||||||
}
|
// }
|
||||||
|
|
||||||
public function loadPartialsSpec() {
|
public function loadPartialsSpec() {
|
||||||
return $this->loadSpec('partials');
|
return $this->loadSpec('partials');
|
||||||
|
|||||||
Reference in New Issue
Block a user