EarlReportGenerator
extends PHPUnit_Util_Printer
in package
implements
PHPUnit_Framework_TestListener
EarlReportGenerator
A test listener to create an EARL report. It can be configured uses the following configuration
<listeners>
<listener class="\ML\JsonLD\Test\EarlReportGenerator">
<arguments>
<array>
<element key="target">
<string>...</string>
</element>
<element key="project-name">
<string>...</string>
</element>
<element key="project-url">
<string>...</string>
</element>
<element key="project-homepage">
<string>...</string>
</element>
<element key="license-url">
<string>...</string>
</element>
<element key="project-description">
<string>...</string>
</element>
<element key="programming-language">
<string>...</string>
</element>
<element key="developer-name">
<string>...</string>
</element>
<element key="developer-url">
<string>...</string>
</element>
<element key="developer-homepage">
<string>...</string>
</element>
</array>
</arguments>
</listener>
</listeners>
Tags
Table of Contents
Interfaces
- PHPUnit_Framework_TestListener
Properties
- $assertions : array<string|int, mixed>
- $earlStatuses : array<string|int, mixed>
- $options : array<string|int, mixed>
- $testTypeOfInterest : string
Methods
- __construct() : mixed
- Constructor
- addError() : mixed
- addFailure() : mixed
- addIncompleteTest() : mixed
- addSkippedTest() : mixed
- endTest() : mixed
- A test ended.
- endTestSuite() : mixed
- flush() : mixed
- startTest() : mixed
- startTestSuite() : mixed
Properties
$assertions
protected
array<string|int, mixed>
$assertions
Collected EARL assertions
$earlStatuses
protected
array<string|int, mixed>
$earlStatuses
Lookup table for EARL statuses
$options
protected
array<string|int, mixed>
$options
Options
$testTypeOfInterest
protected
string
$testTypeOfInterest
= 'ML\JsonLD\Test\W3CTestSuiteTest'
Methods
__construct()
Constructor
public
__construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
-
Configuration options
addError()
public
addError(PHPUnit_Framework_Test $test, Exception $e, mixed $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : Exception
- $time : mixed
Tags
addFailure()
public
addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, mixed $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : PHPUnit_Framework_AssertionFailedError
- $time : mixed
Tags
addIncompleteTest()
public
addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, mixed $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : Exception
- $time : mixed
Tags
addSkippedTest()
public
addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, mixed $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : Exception
- $time : mixed
Tags
endTest()
A test ended.
public
endTest(PHPUnit_Framework_Test $test, float $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $time : float
endTestSuite()
public
endTestSuite(PHPUnit_Framework_TestSuite $suite) : mixed
Parameters
- $suite : PHPUnit_Framework_TestSuite
Tags
flush()
public
flush() : mixed
Tags
startTest()
public
startTest(PHPUnit_Framework_Test $test) : mixed
Parameters
- $test : PHPUnit_Framework_Test
Tags
startTestSuite()
public
startTestSuite(PHPUnit_Framework_TestSuite $suite) : mixed
Parameters
- $suite : PHPUnit_Framework_TestSuite