PHPUnit_Framework_TestFailure::failedTest PHP 메소드

failedTest() 공개 메소드

Note: The test object is not set when the test is executed in process isolation.
또한 보기: PHPUnit_Framework_Exception
public failedTest ( ) : PHPUnit_Framework_Test | null
리턴 PHPUnit_Framework_Test | null
    public function failedTest()
    {
        return $this->failedTest;
    }

Usage Example

예제 #1
0
파일: UI.php 프로젝트: BatVane/Codeception
 protected function printDefect(\PHPUnit_Framework_TestFailure $defect, $count)
 {
     $failedTest = $defect->failedTest();
     if (!$failedTest instanceof \Codeception\TestCase) {
         return parent::printDefect($defect, $count);
     }
     $this->dispatcher->dispatch('fail.print', new \Codeception\Event\Fail($defect->failedTest(), $defect->thrownException()));
 }
All Usage Examples Of PHPUnit_Framework_TestFailure::failedTest