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

Class: PHPUnit_TestResult

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

Class Overview


A TestResult collects the results of executing a test case.


Author(s):

Copyright:

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

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Class Variables

$_errors = array()

[line 35]

  • Access: protected

Type:   array


[ Top ]

$_failures = array()

[line 41]

  • Access: protected

Type:   array


[ Top ]

$_listeners = array()

[line 47]

  • Access: protected

Type:   array


[ Top ]

$_passedTests = array()

[line 53]

  • Access: protected

Type:   array


[ Top ]

$_runTests =  0

[line 59]

  • Access: protected

Type:   integer


[ Top ]



Method Detail

addError   [line 75]

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

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

void addListener( object &$listener)

Registers a TestListener.
  • Access: public

Parameters:

object   &$listener   — 

[ Top ]

addPassedTest   [line 118]

void addPassedTest( object &$test)

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

Parameters:

object   &$test   — 

[ Top ]

endTest   [line 128]

void endTest( object &$test)

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

Parameters:

object   &$test   — 

[ Top ]

errorCount   [line 140]

integer errorCount( )

Gets the number of detected errors.
  • Access: public

[ Top ]

errors   [line 150]

array &errors( )

Returns an Enumeration for the errors.
  • Access: public

[ Top ]

failureCount   [line 160]

integer failureCount( )

Gets the number of detected failures.
  • Access: public

[ Top ]

failures   [line 170]

array &failures( )

Returns an Enumeration for the failures.
  • Access: public

[ Top ]

passedTests   [line 180]

array &passedTests( )

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

[ Top ]

removeListener   [line 191]

void removeListener( object &$listener)

Unregisters a TestListener.

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

  • Access: public

Parameters:

object   &$listener   — 

[ Top ]

run   [line 205]

void run( object &$test)

Runs a TestCase.
  • Access: public

Parameters:

object   &$test   — 

[ Top ]

runCount   [line 218]

integer runCount( )

Gets the number of run tests.
  • Access: public

[ Top ]

shouldStop   [line 227]

void shouldStop( )

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

[ Top ]

startTest   [line 237]

void startTest( object &$test)

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

Parameters:

object   &$test   — 

[ Top ]

stop   [line 248]

void stop( )

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

[ Top ]

toHTML   [line 258]

string toHTML( )

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

[ Top ]

toString   [line 268]

string toString( )

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

[ Top ]

wasSuccessful   [line 292]

boolean wasSuccessful( )

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

[ Top ]


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