code: public function tally()
      {
          while (list($severity, $message, $file, $line) = $this->extract()) {
              $severity = $this->getSeverityAsString($severity);
              $this->test->error($severity, $message, $file, $line);
          }
          while (list($expected, $message) = $this->extractExpectation()) {
              $this->test->assert($expected, false, '%s -> Expected error not caught');
          }
      }
docs: Any errors still in the queue are sent to the test case.
  Any unfulfilled expectations trigger failures.