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

Class: PHPUnit_TestResult

Source Location: /PHPUnit-1.3.0/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 42]
A TestResult collects the results of executing a test case.


[ Top ]


Class Variables

$_errors = array()

[line 47]

  • Access: protected

Type:   array


[ Top ]

$_failures = array()

[line 53]

  • Access: protected

Type:   array


[ Top ]

$_listeners = array()

[line 59]

  • Access: protected

Type:   array


[ Top ]

$_passedTests = array()

[line 65]

  • Access: protected

Type:   array


[ Top ]

$_runTests =  0

[line 71]

  • Access: protected

Type:   integer


[ Top ]



Method Detail

addError   [line 87]

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

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

void addListener( object &$listener)

Registers a TestListener.
  • Access: public

Parameters:

object   &$listener   — 

[ Top ]

addPassedTest   [line 130]

void addPassedTest( object &$test)

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

Parameters:

object   &$test   — 

[ Top ]

endTest   [line 140]

void endTest( object &$test)

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

Parameters:

object   &$test   — 

[ Top ]

errorCount   [line 152]

integer errorCount( )

Gets the number of detected errors.
  • Access: public

[ Top ]

errors   [line 162]

array &errors( )

Returns an Enumeration for the errors.
  • Access: public

[ Top ]

failureCount   [line 172]

integer failureCount( )

Gets the number of detected failures.
  • Access: public

[ Top ]

failures   [line 182]

array &failures( )

Returns an Enumeration for the failures.
  • Access: public

[ Top ]

passedTests   [line 192]

array &passedTests( )

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

[ Top ]

removeListener   [line 203]

void removeListener( object &$listener)

Unregisters a TestListener.

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

  • Access: public

Parameters:

object   &$listener   — 

[ Top ]

run   [line 217]

void run( object &$test)

Runs a TestCase.
  • Access: public

Parameters:

object   &$test   — 

[ Top ]

runCount   [line 230]

integer runCount( )

Gets the number of run tests.
  • Access: public

[ Top ]

shouldStop   [line 239]

void shouldStop( )

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

[ Top ]

startTest   [line 249]

void startTest( object &$test)

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

Parameters:

object   &$test   — 

[ Top ]

stop   [line 260]

void stop( )

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

[ Top ]

toHTML   [line 270]

string toHTML( )

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

[ Top ]

toString   [line 280]

string toString( )

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

[ Top ]

wasSuccessful   [line 305]

boolean wasSuccessful( )

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

[ Top ]


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