App\Lib\Test::setLog PHP Method

setLog() public method

Also check the log line may indicate if the Test has passed.
public setLog ( $lines = [] )
    public function setLog($lines = array())
    {
        $failed = false;
        foreach ($lines as $line) {
            if ($this->checkLogForTestPass($line) && $failed == false) {
                $this->setPassed();
            }
            if ($this->checkLogForTestFailure($line)) {
                $this->setFailed();
                $failed = true;
            }
            // Filter the line of any junk and add to the log.
            $this->log[] = $this->filterLog($line);
        }
    }