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

Class: PHPUnit2_Runner_BaseTestRunner

Source Location: /PHPUnit2-2.0.3/Runner/BaseTestRunner.php

Class Overview


Base class for all test runners.


Author(s):

Copyright:

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

Methods


Child classes:

PHPUnit2_TextUI_TestRunner
A TestRunner for the Command Line Interface (CLI) PHP SAPI Module.

Inherited Variables

Inherited Methods


Class Details

[line 35]
Base class for all test runners.


[ Top ]


Method Detail

addError   [line 50]

void addError( PHPUnit2_Framework_Test $test, Exception $e)

An error occurred.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

addFailure   [line 64]

void addFailure( PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)

A failure occurred.
  • Access: public

Parameters:


[ Top ]

addIncompleteTest   [line 78]

void addIncompleteTest( PHPUnit2_Framework_Test $test, Exception $e)

Incomplete test.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

clearStatus   [line 253]

void clearStatus( )

Clears the status message.
  • Access: protected

[ Top ]

endTest   [line 91]

void endTest( PHPUnit2_Framework_Test $test)

A test ended.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 

[ Top ]

getLoader   [line 104]

PHPUnit2_Runner_TestSuiteLoader getLoader( )

Returns the loader to be used.
  • Access: public

[ Top ]

getTest   [line 120]

PHPUnit2_Framework_Test getTest( string $suiteClassName)

Returns the Test corresponding to the given suite.

This is a template method, subclasses override the runFailed() and clearStatus() methods.

  • Access: public

Parameters:

string   $suiteClassName   — 

[ Top ]

loadSuiteClass   [line 241]

ReflectionClass loadSuiteClass( string $suiteClassName)

Returns the loaded ReflectionClass for a suite name.
  • Access: protected

Parameters:

string   $suiteClassName   — 

[ Top ]

runFailed   [line 229]

void runFailed( string $message)

Override to define how to handle a failed loading of a test suite.
  • Abstract:
  • Access: protected

Overridden in child classes as:

PHPUnit2_TextUI_TestRunner::runFailed()
Override to define how to handle a failed loading of a test suite.

Parameters:

string   $message   — 

[ Top ]

startTest   [line 176]

void startTest( PHPUnit2_Framework_Test $test)

A test started.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 

[ Top ]

testEnded   [line 190]

void testEnded( string $testName)

A test ended.
  • Abstract:
  • Access: public

Overridden in child classes as:

PHPUnit2_TextUI_TestRunner::testEnded()
A test ended.

Parameters:

string   $testName   — 

[ Top ]

testFailed   [line 204]

void testFailed( integer $status, PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)

A test failed.
  • Abstract:
  • Access: public

Overridden in child classes as:

PHPUnit2_TextUI_TestRunner::testFailed()
A test failed.

Parameters:

integer   $status   — 
PHPUnit2_Framework_Test   $test   — 
PHPUnit2_Framework_AssertionFailedError   $e   — 

[ Top ]

testStarted   [line 216]

void testStarted( string $testName)

A test started.
  • Abstract:
  • Access: public

Overridden in child classes as:

PHPUnit2_TextUI_TestRunner::testStarted()
A test started.

Parameters:

string   $testName   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:55:58 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.