コード例 #1
0
 /**
  * @test
  */
 public function addFailureWithNullComparisonFailureDoesNotCrash()
 {
     /** @var $testCase PHPUnit_Framework_TestCase|PHPUnit_Framework_MockObject_MockObject */
     $testCase = $this->getMock('PHPUnit_Framework_TestCase', array('run'), array('aTestName'));
     $error = new PHPUnit_Framework_ExpectationFailedException('', NULL);
     $time = 0.0;
     $this->fixture->addFailure($testCase, $error, $time);
 }