Explorar el Código

only test examples which find a php class.

Justin Hileman hace 15 años
padre
commit
c2c01cf964
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      test/MustacheTest.php

+ 3 - 1
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();