Rename MustacheCallTest Foo class so it can be run with other tests

This commit is contained in:
Justin Hileman
2012-02-29 07:41:18 -08:00
parent 136fdf32c0
commit 19289f85e4
+2 -2
View File
@@ -5,7 +5,7 @@ require_once '../Mustache.php';
class MustacheCallTest extends PHPUnit_Framework_TestCase { class MustacheCallTest extends PHPUnit_Framework_TestCase {
public function testCallEatsContext() { public function testCallEatsContext() {
$foo = new Foo(); $foo = new ClassWithCall();
$foo->name = 'Bob'; $foo->name = 'Bob';
$template = '{{# foo }}{{ label }}: {{ name }}{{/ foo }}'; $template = '{{# foo }}{{ label }}: {{ name }}{{/ foo }}';
@@ -16,7 +16,7 @@ class MustacheCallTest extends PHPUnit_Framework_TestCase {
} }
} }
class Foo { class ClassWithCall {
public $name; public $name;
public function __call($method, $args) { public function __call($method, $args) {
return 'unknown value'; return 'unknown value';