DataSift\Storyplayer\PlayerLib\PhaseGroup_Result::getResultString PHP Method

getResultString() public method

public getResultString ( ) : string
return string
    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';
    }

Usage Example

Example #1
0
 /**
  * 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;
 }