public function getResultString()
{
if (isset($this->resultStrings[$this->resultCode])) {
return $this->resultStrings[$this->resultCode];
}
// either we don't have a string, or the result code itself is
// an unexpected value
return 'UNKNOWN';
}
/** * called when we end a set of phases * * @param PhaseGroup_Result $result * @return void */ public function endPhaseGroup($result) { $o = $this->currentPhaseGroup; $o->result = $result->getResultString(); $o->duration = $result->getDuration(); if (isset($result->filename)) { $o->filename = $result->filename; $o->shortFilename = basename($result->filename); } $this->results->testrun->results[] = clone $o; }