mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix 'undefined index 0'
This commit is contained in:
parent
976efd6fc2
commit
7c2eee116f
@ -314,7 +314,7 @@ class TestRunner extends Controller {
|
||||
if (count($classList) > 1) {
|
||||
self::$default_reporter->writeInfo("All Tests", "Running test cases: ",implode(", ", $classList));
|
||||
} elseif (count($classList) == 1) {
|
||||
self::$default_reporter->writeInfo($classList[0], '');
|
||||
self::$default_reporter->writeInfo(reset($classList), '');
|
||||
} else {
|
||||
// border case: no tests are available.
|
||||
self::$default_reporter->writeInfo('', '');
|
||||
|
Loading…
Reference in New Issue
Block a user