/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage Expected integer, but got string for argument 1 */ public function testIssueNumberMustBeAnInteger() { $this->issue->render(PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE, 'foo', $this->test, $this->exception); }
/** * @param integer $status * @param PHPUnit_Framework_Test $test * @param Exception $e */ protected function add($status, PHPUnit_Framework_Test $test, Exception $e) { switch ($status) { case PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED: case PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE: case PHPUnit_Runner_BaseTestRunner::STATUS_RISKY: if (!$this->isVerbose()) { return; } } $renderIssue = new RenderIssue(); $message = $renderIssue->render($status, $this->issueNumber, $test, $e); $this->appendTextAbove($message); ++$this->issueNumber; }