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

Class: PHPUnit_TestResult

Source Location: /PHPUnit-1.3.2/PHPUnit/TestResult.php

Class Overview


A TestResult collects the results of executing a test case.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 68]
A TestResult collects the results of executing a test case.


[ Top ]


Class Variables

$_errors = array()

[line 73]

  • Access: protected

Type:   array


[ Top ]

$_failures = array()

[line 79]

  • Access: protected

Type:   array


[ Top ]

$_listeners = array()

[line 85]

  • Access: protected

Type:   array


[ Top ]

$_passedTests = array()

[line 91]

  • Access: protected

Type:   array


[ Top ]

$_runTests =  0

[line 97]

  • Access: protected

Type:   integer


[ Top ]



Method Detail

addError   [line 113]

void addError( object &$test, object &$t)

Adds an error to the list of errors.

The passed in exception caused the error.

  • Access: public

Parameters:

object   &$test     
object   &$t     

[ Top ]

addFailure   [line 129]

void addFailure( object &$test, object &$t)

Adds a failure to the list of failures.

The passed in exception caused the failure.

  • Access: public

Parameters:

object   &$test     
object   &$t     

[ Top ]

addListener   [line 143]

void addListener( object &$listener)

Registers a TestListener.
  • Access: public

Parameters:

object   &$listener     

[ Top ]

addPassedTest   [line 156]

void addPassedTest( object &$test)

Adds a passed test to the list of passed tests.
  • Access: public

Parameters:

object   &$test     

[ Top ]

endTest   [line 166]

void endTest( object &$test)

Informs the result that a test was completed.
  • Access: public

Parameters:

object   &$test     

[ Top ]

errorCount   [line 178]

integer errorCount( )

Gets the number of detected errors.
  • Access: public

[ Top ]

errors   [line 188]

array &errors( )

Returns an Enumeration for the errors.
  • Access: public

[ Top ]

failureCount   [line 198]

integer failureCount( )

Gets the number of detected failures.
  • Access: public

[ Top ]

failures   [line 208]

array &failures( )

Returns an Enumeration for the failures.
  • Access: public

[ Top ]

passedTests   [line 218]

array &passedTests( )

Returns an Enumeration for the passed tests.
  • Access: public

[ Top ]

removeListener   [line 229]

void removeListener( object &$listener)

Unregisters a TestListener.

This requires the Zend Engine 2 (to work properly).

  • Access: public

Parameters:

object   &$listener     

[ Top ]

run   [line 243]

void run( object &$test)

Runs a TestCase.
  • Access: public

Parameters:

object   &$test     

[ Top ]

runCount   [line 256]

integer runCount( )

Gets the number of run tests.
  • Access: public

[ Top ]

shouldStop   [line 265]

void shouldStop( )

Checks whether the test run should stop.
  • Access: public

[ Top ]

startTest   [line 275]

void startTest( object &$test)

Informs the result that a test will be started.
  • Access: public

Parameters:

object   &$test     

[ Top ]

stop   [line 286]

void stop( )

Marks that the test run should stop.
  • Access: public

[ Top ]

toHTML   [line 296]

string toHTML( )

Returns a HTML representation of the test result.
  • Access: public

[ Top ]

toString   [line 306]

string toString( )

Returns a text representation of the test result.
  • Access: public

[ Top ]

wasSuccessful   [line 331]

boolean wasSuccessful( )

Returns whether the entire test was successful or not.
  • Access: public

[ Top ]


Documentation generated on Thu, 10 Nov 2005 05:02:24 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.