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

Class: PHPUnit2_Framework_TestResult

Source Location: /PHPUnit2-2.0.3/Framework/TestResult.php

Class Overview


A TestResult collects the results of executing a test case.


Author(s):

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

addError   [line 84]

void addError( mixed PHPUnit2_Framework_Test$test, mixed Exception$e, PHPUnit2_Framework_Test $test, Exception $e)

Adds an error to the list of errors.

The passed in exception caused the error.

  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test     
Exception   $e     

[ Top ]

addFailure   [line 111]

void addFailure( mixed PHPUnit2_Framework_Test$test, mixed PHPUnit2_Framework_AssertionFailedError$e, PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)

Adds a failure to the list of failures.

The passed in exception caused the failure.

  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test     
PHPUnit2_Framework_AssertionFailedError   $e     

[ Top ]

addListener   [line 136]

void addListener( PHPUnit2_Framework_TestListener PHPUnit2_Framework_TestListener$listener)

Registers a TestListener.
  • Access: public

Parameters:

PHPUnit2_Framework_TestListener   PHPUnit2_Framework_TestListener$listener     

[ Top ]

allCompletlyImplemented   [line 164]

boolean allCompletlyImplemented( )

Returns true if no incomplete test occured.
  • Access: public

[ Top ]

endTest   [line 149]

void endTest( PHPUnit2_Framework_Test PHPUnit2_Framework_Test$test)

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

Parameters:

PHPUnit2_Framework_Test   PHPUnit2_Framework_Test$test     

[ Top ]

errorCount   [line 203]

integer errorCount( )

Gets the number of detected errors.
  • Access: public

[ Top ]

errors   [line 216]

array errors( )

Returns an Enumeration for the errors.
  • Access: public

[ Top ]

failureCount   [line 229]

integer failureCount( )

Gets the number of detected failures.
  • Access: public

[ Top ]

failures   [line 242]

array failures( )

Returns an Enumeration for the failures.
  • Access: public

[ Top ]

notImplemented   [line 190]

array notImplemented( )

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

[ Top ]

notImplementedCount   [line 177]

integer notImplementedCount( )

Gets the number of incomplete tests.
  • Access: public

[ Top ]

removeListener   [line 255]

void removeListener( mixed PHPUnit2_Framework_TestListener$listener, PHPUnit2_Framework_TestListener $listener)

Unregisters a TestListener.
  • Access: public

Parameters:

PHPUnit2_Framework_TestListener   $listener     

[ Top ]

run   [line 272]

void run( mixed PHPUnit2_Framework_Test$test, PHPUnit2_Framework_Test $test)

Runs a TestCase.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test     

[ Top ]

runCount   [line 299]

integer runCount( )

Gets the number of run tests.
  • Access: public

[ Top ]

shouldStop   [line 311]

void shouldStop( )

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

[ Top ]

startTest   [line 324]

void startTest( mixed PHPUnit2_Framework_Test$test, PHPUnit2_Framework_Test $test)

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

Parameters:

PHPUnit2_Framework_Test   $test     

[ Top ]

stop   [line 340]

void stop( )

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

[ Top ]

wasSuccessful   [line 353]

boolean wasSuccessful( )

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

[ Top ]


Documentation generated on Mon, 27 Sep 2004 04:10:33 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.