MDL-32923 on failure print hint how to execute the failed test case

This commit is contained in:
Petr Skoda
2012-05-13 09:56:57 +02:00
parent 08ad325702
commit ed7259d112
3 changed files with 70 additions and 2 deletions
+1 -2
View File
@@ -1011,8 +1011,7 @@ class phpunit_util {
// fix link to schema
$level = substr_count(str_replace('\\', '/', $cpath), '/') - substr_count(str_replace('\\', '/', $CFG->dirroot), '/');
$fcontents = str_replace('lib/phpunit/phpunit.xsd', str_repeat('../', $level).'lib/phpunit/phpunit.xsd', $fcontents);
$fcontents = str_replace('lib/phpunit/bootstrap.php', str_repeat('../', $level).'lib/phpunit/bootstrap.php', $fcontents);
$fcontents = str_replace('lib/phpunit/', str_repeat('../', $level).'lib/phpunit/', $fcontents);
// Write the file
$result = false;