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

Class: PHPUnit_TestFailure

Source Location: /PHPUnit-1.2.2/PHPUnit/TestFailure.php

Class Overview


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


Author(s):

Copyright:

  • Copyright &copy; 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

PHPUnit_TestFailure (Constructor)   [line 47]

PHPUnit_TestFailure PHPUnit_TestFailure( object &$failedTest, string &$thrownException)

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

Parameters:

object   &$failedTest   — 
string   &$thrownException   — 

[ Top ]

failedTest   [line 58]

object &failedTest( )

Gets the failed test.
  • Access: public

[ Top ]

thrownException   [line 68]

object &thrownException( )

Gets the thrown exception.
  • Access: public

[ Top ]

toString   [line 78]

string toString( )

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

[ Top ]


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