mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
avoid a PHPUnit message when no legacy tests are in the test suite
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user