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
 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