PHP Class PHPUnit_Framework_TestFailure, horde

Author: Sebastian Bergmann ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$failedTest PHPUnit_Framework_Test | null
$thrownException Exception

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

exceptionMessage() public méthode

Returns the exception's message.
public exceptionMessage ( ) : string
Résultat string

exceptionToString() public static méthode

Returns a description for an exception.
public static exceptionToString ( Exception $e ) : string
$e Exception
Résultat string

failedTest() public méthode

Note: The test object is not set when the test is executed in process isolation.
See also: PHPUnit_Framework_Exception
public failedTest ( ) : PHPUnit_Framework_Test | null
Résultat PHPUnit_Framework_Test | null

getExceptionAsString() public méthode

Returns a description for the thrown exception.
public getExceptionAsString ( ) : string
Résultat string

getTestName() public méthode

Returns the name of the failing test (including data set, if any).
public getTestName ( ) : string
Résultat string

isFailure() public méthode

Returns true if the thrown exception is of type AssertionFailedError.
public isFailure ( ) : boolean
Résultat boolean

thrownException() public méthode

Gets the thrown exception.
public thrownException ( ) : Exception
Résultat Exception

toString() public méthode

Returns a short description of the failure.
public toString ( ) : string
Résultat string

Property Details

$failedTest protected_oe property

protected PHPUnit_Framework_Test|null $failedTest
Résultat PHPUnit_Framework_Test | null

$thrownException protected_oe property

protected Exception $thrownException
Résultat Exception