ParaTest\Logging\LogInterpreter::isSuccessful PHP Method

isSuccessful() public method

Returns true if total errors and failures equals 0, false otherwise
public isSuccessful ( ) : boolean
return boolean
    public function isSuccessful()
    {
        $failures = $this->getTotalFailures();
        $errors = $this->getTotalErrors();
        return $failures === 0 && $errors === 0;
    }

Usage Example

 /**
  * Return the footer information reporting success
  * or failure
  *
  * @return string
  */
 public function getFooter()
 {
     return $this->results->isSuccessful() ? $this->getSuccessFooter() : $this->getFailedFooter();
 }
All Usage Examples Of ParaTest\Logging\LogInterpreter::isSuccessful