TAP7
extends Printer
in package
implements
TestListener
Implementation of TAP for PHPUnit 7.x-8.x.
Table of Contents
Interfaces
- TestListener
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.
- 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
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