/** * Return the footer information reporting success * or failure * * @return string */ public function getFooter() { return $this->results->isSuccessful() ? $this->getSuccessFooter() : $this->getFailedFooter(); }
/** * Whether the test run is successful and has no warnings * @return bool */ protected function isSuccessful() { return $this->results->isSuccessful() && count($this->warnings) == 0; }
public function testIsSuccessfulReturnsTrueIfNoErrorsOrFailures() { $interpreter = new LogInterpreter(); $interpreter->addReader($this->getReader('passingSuite')); $this->assertTrue($interpreter->isSuccessful()); }