public function checkLogForTestFailure($line) { return count(preg_grep("/({$this->failure_regex})/", array($line))) > 0; }