PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: PHPUnit2_Framework_TestFailure

Source Location: /PHPUnit2-3.0.0alpha11/Framework/TestFailure.php

Class Overview


A TestFailure collects a failed test together with the caught exception.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 68]
A TestFailure collects a failed test together with the caught exception.


[ Top ]


Class Variables

$failedTest =

[line 74]

  • Access: protected



[ Top ]

$thrownException =

[line 80]

  • Access: protected

Type:   Exception


[ Top ]



Method Detail

__construct (Constructor)   [line 89]

PHPUnit2_Framework_TestFailure __construct( PHPUnit2_Framework_Test $failedTest, Exception $thrownException)

Constructs a TestFailure with the given test and exception.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $failedTest   — 
Exception   $thrownException   — 

[ Top ]

exceptionMessage   [line 139]

string exceptionMessage( )

Returns the exception's message.
  • Access: public

[ Top ]

failedTest   [line 117]

Test failedTest( )

Gets the failed test.
  • Access: public

[ Top ]

isFailure   [line 151]

boolean isFailure( )

Returns TRUE if the thrown exception is of type AssertionFailedError.
  • Access: public

[ Top ]

thrownException   [line 128]

Exception thrownException( )

Gets the thrown exception.
  • Access: public

[ Top ]

toString   [line 101]

string toString( )

Returns a short description of the failure.
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.