|
Lggr
|


Public Member Functions | |
| __construct ($out=null, $reportUselessTests=false) | |
| flush () | |
| addError (Test $test, \Exception $e, $time) | |
| addWarning (Test $test, Warning $e, $time) | |
| addFailure (Test $test, AssertionFailedError $e, $time) | |
| addIncompleteTest (Test $test, \Exception $e, $time) | |
| addRiskyTest (Test $test, \Exception $e, $time) | |
| addSkippedTest (Test $test, \Exception $e, $time) | |
| startTestSuite (TestSuite $suite) | |
| endTestSuite (TestSuite $suite) | |
| startTest (Test $test) | |
| endTest (Test $test, $time) | |
| getXML () | |
| setWriteDocument ($flag) | |
Public Member Functions inherited from PHPUnit\Util\Printer | |
| __construct ($out=null) | |
| incrementalFlush () | |
| write ($buffer) | |
| getAutoFlush () | |
| setAutoFlush ($autoFlush) | |
Public Member Functions inherited from PHPUnit\Framework\TestListener | |
| addWarning (Test $test, Warning $e, $time) | |
Protected Attributes | |
| $document | |
| $root | |
| $reportUselessTests = false | |
| $writeDocument = true | |
| $testSuites = [] | |
| $testSuiteTests = [0] | |
| $testSuiteAssertions = [0] | |
| $testSuiteErrors = [0] | |
| $testSuiteFailures = [0] | |
| $testSuiteSkipped = [0] | |
| $testSuiteTimes = [0] | |
| $testSuiteLevel = 0 | |
| $currentTestCase | |
Protected Attributes inherited from PHPUnit\Util\Printer | |
| $autoFlush = false | |
| $out | |
| $outTarget | |
A TestListener that generates a logfile of the test execution in XML markup.
The XML markup used is the same as the one that is used by the JUnit Ant task.
| PHPUnit\Util\Log\JUnit::__construct | ( | $out = null, |
|
$reportUselessTests = false |
|||
| ) |
Constructor.
| mixed | $out | |
| bool | $reportUselessTests |
An error occurred.
| Test | $test | |
| \Exception | $e | |
| float | $time |
Implements PHPUnit\Framework\TestListener.
| PHPUnit\Util\Log\JUnit::addFailure | ( | Test | $test, |
| AssertionFailedError | $e, | ||
| $time | |||
| ) |
A failure occurred.
| Test | $test | |
| AssertionFailedError | $e | |
| float | $time |
Implements PHPUnit\Framework\TestListener.
Incomplete test.
| Test | $test | |
| \Exception | $e | |
| float | $time |
Implements PHPUnit\Framework\TestListener.
Skipped test.
| Test | $test | |
| \Exception | $e | |
| float | $time |
Implements PHPUnit\Framework\TestListener.
| PHPUnit\Util\Log\JUnit::endTest | ( | Test | $test, |
| $time | |||
| ) |
| PHPUnit\Util\Log\JUnit::endTestSuite | ( | TestSuite | $suite | ) |
| PHPUnit\Util\Log\JUnit::flush | ( | ) |
Flush buffer and close output.
Reimplemented from PHPUnit\Util\Printer.
| PHPUnit\Util\Log\JUnit::getXML | ( | ) |
Returns the XML as a string.
| PHPUnit\Util\Log\JUnit::setWriteDocument | ( | $flag | ) |
Enables or disables the writing of the document in flush().
This is a "hack" needed for the integration of PHPUnit with Phing.
| PHPUnit\Util\Log\JUnit::startTest | ( | Test | $test | ) |
| PHPUnit\Util\Log\JUnit::startTestSuite | ( | TestSuite | $suite | ) |
1.8.17