private function getColouredStatus($status, $value = NULL) { if ($value === NULL) { $value = $status; } else { $value .= " " . $status; } ResultStatus::isValid($status); return "<" . $this->colours[$status] . ">" . $value . "</" . $this->colours[$status] . ">"; }
/** * Set result * * @param string $status * @return TestResult */ public function setStatus($status) { ResultStatus::isValid($status); $this->status = $status; return $this; }