avoid a PHPUnit message when no legacy tests are in the test suite

This commit is contained in:
Fabien Potencier
2015-08-18 15:15:46 +02:00
parent 05b5f80d4a
commit 4cb0704e07
+5
View File
@@ -72,6 +72,11 @@ abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
$tests[] = array(str_replace($fixturesDir.'/', '', $file), $message, $condition, $templates, $exception, $outputs);
}
if (!$tests) {
// add a dummy test to avoid a PHPUnit message
return array(array('not', '-', '', array(), '', array()));
}
return $tests;
}