BUG Fix 'undefined index 0'

This commit is contained in:
Damian Mooyman 2014-08-14 12:24:56 +12:00
parent 976efd6fc2
commit 7c2eee116f

View File

@ -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('', '');