TAP9
extends Printer
in package
implements
ResultPrinter
Implementation of TAP for PHPUnit 9.x.
Table of Contents
Interfaces
- ResultPrinter
Properties
- $testNumber : int
- $testSuccessful : bool
- $testSuiteLevel : int
Methods
- __construct() : mixed
- Constructor.
- addError() : void
- An error occurred.
- addFailure() : void
- A failure occurred.
- addIncompleteTest() : void
- Incomplete test.
- addRiskyTest() : void
- Risky test.
- addSkippedTest() : void
- Skipped test.
- addWarning() : void
- Warning test.
- endTest() : void
- A test ended.
- endTestSuite() : void
- A testsuite ended.
- printResult() : void
- startTest() : void
- A test started.
- startTestSuite() : void
- A testsuite started.
- writeNotOk() : void
- writeDiagnostics() : void
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, Throwable $t, float $time) : void
Parameters
- $test : Test
- $t : Throwable
- $time : float
addFailure()
A failure occurred.
public
addFailure(Test $test, AssertionFailedError $e, float $time) : void
Parameters
- $test : Test
- $e : AssertionFailedError
- $time : float
addIncompleteTest()
Incomplete test.
public
addIncompleteTest(Test $test, Throwable $t, float $time) : void
Parameters
- $test : Test
- $t : Throwable
- $time : float
addRiskyTest()
Risky test.
public
addRiskyTest(Test $test, Throwable $t, float $time) : void
Parameters
- $test : Test
- $t : Throwable
- $time : float
Tags
addSkippedTest()
Skipped test.
public
addSkippedTest(Test $test, Throwable $t, float $time) : void
Parameters
- $test : Test
- $t : Throwable
- $time : float
Tags
addWarning()
Warning test.
public
addWarning(Test $test, Warning $e, float $time) : void
Parameters
- $test : Test
- $e : Warning
- $time : float
Tags
endTest()
A test ended.
public
endTest(Test $test, float $time) : void
Parameters
- $test : Test
- $time : float
endTestSuite()
A testsuite ended.
public
endTestSuite(TestSuite $suite) : void
Parameters
- $suite : TestSuite
printResult()
public
printResult(TestResult $result) : void
Parameters
- $result : TestResult
startTest()
A test started.
public
startTest(Test $test) : void
Parameters
- $test : Test
startTestSuite()
A testsuite started.
public
startTestSuite(TestSuite $suite) : void
Parameters
- $suite : TestSuite
writeNotOk()
protected
writeNotOk(Test $test[, string $prefix = '' ][, string $directive = '' ]) : void
Parameters
- $test : Test
- $prefix : string = ''
- $directive : string = ''
writeDiagnostics()
private
writeDiagnostics(Test $test) : void
Parameters
- $test : Test