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

Class: PHPUnit2_Framework_ExpectationFailedException

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

Class Overview

Exception
   |
   --PHPUnit2_Framework_AssertionFailedError
      |
      --PHPUnit2_Framework_ExpectationFailedException

Exception for expectations which failed their check.


Author(s):

  • Jan Borsodi <jb at ez.no> Sebastian Bergmann <sb at sebastian-bergmann.de>

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Framework_AssertionFailedError

PHPUnit2_Framework_AssertionFailedError::getLocation()
Returns the location where this failure occured.
PHPUnit2_Framework_AssertionFailedError::toString()
Wrapper for getMessage() which is declared as final.

Class Details

[line 74]
Exception for expectations which failed their check.

The exception contains the error message and optionally a PHPUnit2_Framework_ComparisonFailure which is used to generate diff output of the failed expectations.

  • Author: Jan Borsodi <jb@ez.no> Sebastian Bergmann <sb@sebastian-bergmann.de>
  • Version: Release: @package_version@
  • Copyright: 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>
  • Link: http://pear.php.net/package/PHPUnit2
  • Since: Class available since Release 3.0.0
  • License: BSD License


[ Top ]


Method Detail

__construct (Constructor)   [line 79]

PHPUnit2_Framework_ExpectationFailedException __construct( $message, [PHPUnit2_Framework_ComparisonFailure $comparisonFailure = NULL])

  • Access: public

Parameters:

   $message   — 
PHPUnit2_Framework_ComparisonFailure   $comparisonFailure   — 

[ Top ]

getComparisonFailure   [line 91]

void getComparisonFailure( )

  • Access: public

[ Top ]

getDescription   [line 96]

void getDescription( )

  • Access: public

[ Top ]


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