PHPUnit_Framework_TestResult::errors PHP Метод

errors() публичный Метод

Returns an Enumeration for the errors.
public errors ( ) : array
Результат array
    public function errors()
    {
        return $this->errors;
    }

Usage Example

Пример #1
0
 protected function assertTestsAreSuccessful(PHPUnit_Framework_TestResult $result)
 {
     if ($result->wasSuccessful()) {
         return;
     }
     $msg = "Test should pass, instead there are {$result->errorCount()} errors:\n";
     /** @var $error PHPUnit_Framework_TestFailure */
     foreach ($result->errors() as $error) {
         $msg .= $error->exceptionMessage();
     }
     $this->fail($msg);
 }
All Usage Examples Of PHPUnit_Framework_TestResult::errors