PHP 클래스 PHPUnit_Framework_TestFailure, horde

저자: Sebastian Bergmann ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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