MDL-38184 behat: Solving problem with the tests loader

This commit is contained in:
David Monllao
2013-03-08 09:42:28 +08:00
parent 1d823d9322
commit a8d910a82a
@@ -124,6 +124,10 @@ class behat_config_manager {
$stepsdefinitions = array();
foreach ($components as $componentname => $componentpath) {
$componentpath = self::clean_path($componentpath);
if (!file_exists($componentpath . self::get_behat_tests_path())) {
continue;
}
$diriterator = new DirectoryIterator($componentpath . self::get_behat_tests_path());
$regite = new RegexIterator($diriterator, '|behat_.*\.php$|');