TAPLegacy
extends Printer
in package
implements
TestListener
Table of Contents
Interfaces
- TestListener
Properties
- $testNumber : int
- $testSuccessful : bool
- $testSuiteLevel : int
Methods
- __construct() : mixed
- Constructor.
- addError() : mixed
- An error occurred.
- addFailure() : mixed
- A failure occurred.
- addIncompleteTest() : mixed
- Incomplete test.
- addRiskyTest() : mixed
- Risky test.
- addSkippedTest() : mixed
- Skipped test.
- addWarning() : mixed
- Warning test.
- endTest() : mixed
- A test ended.
- endTestSuite() : mixed
- A testsuite ended.
- startTest() : mixed
- A test started.
- startTestSuite() : mixed
- A testsuite started.
- writeNotOk() : mixed
- writeDiagnostics() : mixed
Properties
$testNumber
protected
int
$testNumber
= 0
$testSuccessful
protected
bool
$testSuccessful
= TRUE
$testSuiteLevel
protected
int
$testSuiteLevel
= 0
Methods
__construct()
Constructor.
public
__construct([mixed $out = NULL ]) : mixed
Parameters
- $out : mixed = NULL
Tags
addError()
An error occurred.
public
addError(Test $test, Exception $e, float $time) : mixed
Parameters
- $test : Test
- $e : Exception
- $time : float
addFailure()
A failure occurred.
public
addFailure(Test $test, AssertionFailedError $e, float $time) : mixed
Parameters
- $test : Test
- $e : AssertionFailedError
- $time : float
addIncompleteTest()
Incomplete test.
public
addIncompleteTest(Test $test, Exception $e, float $time) : mixed
Parameters
- $test : Test
- $e : Exception
- $time : float
addRiskyTest()
Risky test.
public
addRiskyTest(Test $test, Exception $e, float $time) : mixed
Parameters
- $test : Test
- $e : Exception
- $time : float
Tags
addSkippedTest()
Skipped test.
public
addSkippedTest(Test $test, Exception $e, float $time) : mixed
Parameters
- $test : Test
- $e : Exception
- $time : float
Tags
addWarning()
Warning test.
public
addWarning(Test $test, Warning $e, float $time) : mixed
Parameters
- $test : Test
- $e : Warning
- $time : float
Tags
endTest()
A test ended.
public
endTest(Test $test, float $time) : mixed
Parameters
- $test : Test
- $time : float
endTestSuite()
A testsuite ended.
public
endTestSuite(TestSuite $suite) : mixed
Parameters
- $suite : TestSuite
startTest()
A test started.
public
startTest(Test $test) : mixed
Parameters
- $test : Test
startTestSuite()
A testsuite started.
public
startTestSuite(TestSuite $suite) : mixed
Parameters
- $suite : TestSuite
writeNotOk()
protected
writeNotOk(Test $test[, string $prefix = '' ][, string $directive = '' ]) : mixed
Parameters
- $test : Test
- $prefix : string = ''
- $directive : string = ''
writeDiagnostics()
private
writeDiagnostics(Test $test) : mixed
Parameters
- $test : Test