isSuccessful() public method

Returns true if total errors and failures equals 0, false otherwise
public isSuccessful ( ) : boolean
return boolean
コード例 #1
0
 /**
  * Return the footer information reporting success
  * or failure
  *
  * @return string
  */
 public function getFooter()
 {
     return $this->results->isSuccessful() ? $this->getSuccessFooter() : $this->getFailedFooter();
 }
コード例 #2
0
 /**
  * Whether the test run is successful and has no warnings
  * @return bool
  */
 protected function isSuccessful()
 {
     return $this->results->isSuccessful() && count($this->warnings) == 0;
 }
コード例 #3
0
 public function testIsSuccessfulReturnsTrueIfNoErrorsOrFailures()
 {
     $interpreter = new LogInterpreter();
     $interpreter->addReader($this->getReader('passingSuite'));
     $this->assertTrue($interpreter->isSuccessful());
 }