Lggr
Public Member Functions | List of all members
PHPUnit\Util\TestDox\XmlResultPrinter Class Reference
Inheritance diagram for PHPUnit\Util\TestDox\XmlResultPrinter:
Inheritance graph
[legend]
Collaboration diagram for PHPUnit\Util\TestDox\XmlResultPrinter:
Collaboration graph
[legend]

Public Member Functions

 __construct ($out=null)
 
 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)
 
- Public Member Functions inherited from PHPUnit\Util\Printer
 incrementalFlush ()
 
 write ($buffer)
 
 getAutoFlush ()
 
 setAutoFlush ($autoFlush)
 
- Public Member Functions inherited from PHPUnit\Framework\TestListener
 addWarning (Test $test, Warning $e, $time)
 

Additional Inherited Members

- Protected Attributes inherited from PHPUnit\Util\Printer
 $autoFlush = false
 
 $out
 
 $outTarget
 

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Util\TestDox\XmlResultPrinter::__construct (   $out = null)
Parameters
string | resource$out

Reimplemented from PHPUnit\Util\Printer.

Member Function Documentation

◆ addError()

PHPUnit\Util\TestDox\XmlResultPrinter::addError ( Test  $test,
\Exception  $e,
  $time 
)

An error occurred.

Parameters
Test$test
\Exception$e
float$time

Implements PHPUnit\Framework\TestListener.

◆ addFailure()

PHPUnit\Util\TestDox\XmlResultPrinter::addFailure ( Test  $test,
AssertionFailedError  $e,
  $time 
)

A failure occurred.

Parameters
Test$test
AssertionFailedError$e
float$time

Implements PHPUnit\Framework\TestListener.

◆ addIncompleteTest()

PHPUnit\Util\TestDox\XmlResultPrinter::addIncompleteTest ( Test  $test,
\Exception  $e,
  $time 
)

Incomplete test.

Parameters
Test$test
\Exception$e
float$time

Implements PHPUnit\Framework\TestListener.

◆ addRiskyTest()

PHPUnit\Util\TestDox\XmlResultPrinter::addRiskyTest ( Test  $test,
\Exception  $e,
  $time 
)

Risky test.

Parameters
Test$test
\Exception$e
float$time

Implements PHPUnit\Framework\TestListener.

◆ addSkippedTest()

PHPUnit\Util\TestDox\XmlResultPrinter::addSkippedTest ( Test  $test,
\Exception  $e,
  $time 
)

Skipped test.

Parameters
Test$test
\Exception$e
float$time

Implements PHPUnit\Framework\TestListener.

◆ addWarning()

PHPUnit\Util\TestDox\XmlResultPrinter::addWarning ( Test  $test,
Warning  $e,
  $time 
)

A warning occurred.

Parameters
Test$test
Warning$e
float$time

◆ endTest()

PHPUnit\Util\TestDox\XmlResultPrinter::endTest ( Test  $test,
  $time 
)

A test ended.

Parameters
Test$test
float$time

Implements PHPUnit\Framework\TestListener.

◆ endTestSuite()

PHPUnit\Util\TestDox\XmlResultPrinter::endTestSuite ( TestSuite  $suite)

A test suite ended.

Parameters
TestSuite$suite

Implements PHPUnit\Framework\TestListener.

◆ flush()

PHPUnit\Util\TestDox\XmlResultPrinter::flush ( )

Flush buffer and close output.

Reimplemented from PHPUnit\Util\Printer.

◆ startTest()

PHPUnit\Util\TestDox\XmlResultPrinter::startTest ( Test  $test)

A test started.

Parameters
Test$test

Implements PHPUnit\Framework\TestListener.

◆ startTestSuite()

PHPUnit\Util\TestDox\XmlResultPrinter::startTestSuite ( TestSuite  $suite)

A test suite started.

Parameters
TestSuite$suite

Implements PHPUnit\Framework\TestListener.


The documentation for this class was generated from the following file: