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

Class: PHPUnit_TestFailure

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

Class Overview


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


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

PHPUnit_TestFailure (Constructor)   [line 55]

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 66]

object &failedTest( )

Gets the failed test.
  • Access: public

[ Top ]

thrownException   [line 76]

object &thrownException( )

Gets the thrown exception.
  • Access: public

[ Top ]

toString   [line 86]

string toString( )

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

[ Top ]


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