From c2c01cf964536b9c3ffdd30eaf1073980812449f Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 6 Jul 2010 10:09:00 -0400 Subject: [PATCH] only test examples which find a php class. --- test/MustacheTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/MustacheTest.php b/test/MustacheTest.php index bd055f7..a877c03 100644 --- a/test/MustacheTest.php +++ b/test/MustacheTest.php @@ -283,7 +283,9 @@ class MustacheTest extends PHPUnit_Framework_TestCase { } } - $ret[$example] = array($class, $template, $output); + if (!empty($class)) { + $ret[$example] = array($class, $template, $output); + } } $files->next();