mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3386 from tractorcow/pulls/3.1/abstracttest
BUG Fix 'undefined index 0'
This commit is contained in:
commit
9bc7dd3059
@ -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