private function getCountString($num, $failed)
    {
        $label = "$num test";
        if ($num != 1) {
            $label .= 's';
        }

        if ($failed) {
            return $this->color('error', " $label failed");
        }

        return $this->color('success', " $label passed");
    }
private function getCountString($num, $failed)
    {
        $label = "$num test";
        if ($num != 1) {
            $label .= 's';
        }

        if ($failed) {
            return $this->color('error', " $label failed");
        }

        return $this->color('success', " $label passed");
    }
private function getCountString ( $ num , $ failed ) { $ label = "$num test" ; if ( $ num != 1 ) { $ label .= 's' ; } if ( $ failed ) { return $ this -> color ( 'error' , " $label failed" ) ; } return $ this -> color ( 'success' , " $label passed" ) ; }
Get a string for outputting a count of passing
or failing tests.

@param $num
@param $failed
@return string
Get a string for outputting a count of passing or failing tests .