PHP Класс PHPUnit_Framework_TestFailure, horde

Автор: Sebastian Bergmann ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$failedTest PHPUnit_Framework_Test | null
$thrownException Exception

Открытые методы

Метод Описание
__construct ( PHPUnit_Framework_Test $failedTest, Exception $thrownException ) Constructs a TestFailure with the given test and exception.
exceptionMessage ( ) : string Returns the exception's message.
exceptionToString ( Exception $e ) : string Returns a description for an exception.
failedTest ( ) : PHPUnit_Framework_Test | null Returns the failing test.
getExceptionAsString ( ) : string Returns a description for the thrown exception.
getTestName ( ) : string Returns the name of the failing test (including data set, if any).
isFailure ( ) : boolean Returns true if the thrown exception is of type AssertionFailedError.
thrownException ( ) : Exception Gets the thrown exception.
toString ( ) : string Returns a short description of the failure.

Описание методов

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

Constructs a TestFailure with the given test and exception.
public __construct ( PHPUnit_Framework_Test $failedTest, Exception $thrownException )
$failedTest PHPUnit_Framework_Test
$thrownException Exception

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

Returns the exception's message.
public exceptionMessage ( ) : string
Результат string

exceptionToString() публичный статический Метод

Returns a description for an exception.
public static exceptionToString ( Exception $e ) : string
$e Exception
Результат string

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

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

Returns a description for the thrown exception.
public getExceptionAsString ( ) : string
Результат string

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

Returns the name of the failing test (including data set, if any).
public getTestName ( ) : string
Результат string

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

Returns true if the thrown exception is of type AssertionFailedError.
public isFailure ( ) : boolean
Результат boolean

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

Gets the thrown exception.
public thrownException ( ) : Exception
Результат Exception

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

Returns a short description of the failure.
public toString ( ) : string
Результат string

Описание свойств

$failedTest защищенное свойство

protected PHPUnit_Framework_Test|null $failedTest
Результат PHPUnit_Framework_Test | null

$thrownException защищенное свойство

protected Exception $thrownException
Результат Exception