PHPUnit_Framework_TestFailure::__construct PHP Метод

__construct() публичный Метод

Constructs a TestFailure with the given test and exception.
public __construct ( PHPUnit_Framework_Test $failedTest, Exception $thrownException )
$failedTest PHPUnit_Framework_Test
$thrownException Exception
    public function __construct(PHPUnit_Framework_Test $failedTest, $thrownException)
    {
        if ($failedTest instanceof PHPUnit_Framework_SelfDescribing) {
            $this->testName = $failedTest->toString();
        } else {
            $this->testName = get_class($failedTest);
        }
        if (!$failedTest instanceof PHPUnit_Framework_TestCase || !$failedTest->isInIsolation()) {
            $this->failedTest = $failedTest;
        }
        $this->thrownException = $thrownException;
    }