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

Class: PHPUnit2_Framework_ComparisonFailure_Object

Source Location: /PHPUnit2-3.0.0alpha11/Framework/ComparisonFailure/Object.php

Class Overview

Exception
   |
   --PHPUnit2_Framework_AssertionFailedError
      |
      --PHPUnit2_Framework_ComparisonFailure
         |
         --PHPUnit2_Framework_ComparisonFailure_Object

Thrown when an assertion for object equality failed.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Class: Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace

Inherited Methods

Class: PHPUnit2_Framework_ComparisonFailure

PHPUnit2_Framework_ComparisonFailure::__construct()
Initialises with the expected value and the actual value.
PHPUnit2_Framework_ComparisonFailure::diffEqual()
Figures out which diff class to use for the input types then instantiates that class and returns the object.
PHPUnit2_Framework_ComparisonFailure::diffIdentical()
Figures out which diff class to use for the input types then instantiates that class and returns the object.
PHPUnit2_Framework_ComparisonFailure::shortenedExport()
Exports the value $value to a string but in a shortened form.

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: Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )
__wakeup ( )

Class Details

[line 68]
Thrown when an assertion for object equality failed.


[ Top ]


Method Detail

toString   [line 76]

void toString( )

Returns a string describing the difference between the expected and the actual object.
  • Access: public

Overrides PHPUnit2_Framework_AssertionFailedError::toString() (Wrapper for getMessage() which is declared as final.)
[ Top ]


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