MDL-60965 behat: Correct strlen use

This commit is contained in:
Andrew Nicols 2017-12-05 11:14:40 +08:00
parent 5f54a8760f
commit a7d75ba5c8

View File

@ -398,7 +398,7 @@ function print_combined_install_output($processes) {
// Show process name in first row.
foreach ($processes as $name => $process) {
// If we don't have enough space to show full run name then show runX.
if ($lengthofprocessline < strlen($name + 2)) {
if ($lengthofprocessline < strlen($name) + 2) {
$name = substr($name, -5);
}
// One extra padding as we are adding | separator for rest of the data.