diff --git a/test/Mustache/Test/Functional/ExamplesTest.php b/test/Mustache/Test/Functional/ExamplesTest.php index 1f6fb1b..ffb8361 100644 --- a/test/Mustache/Test/Functional/ExamplesTest.php +++ b/test/Mustache/Test/Functional/ExamplesTest.php @@ -93,7 +93,8 @@ class Mustache_Test_Functional_ExamplesTest extends PHPUnit_Framework_TestCase switch ($info['extension']) { case 'php': require_once $fullpath; - $context = new $info['filename'](); + $className = $info['filename']; + $context = new $className(); break; case 'mustache':