Lggr
Public Member Functions | List of all members
PHPUnit\Framework\TestListener Interface Reference
Inheritance diagram for PHPUnit\Framework\TestListener:
Inheritance graph
[legend]

Public Member Functions

 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)
 

Detailed Description

A Listener for test progress.

Member Function Documentation

◆ addError()

PHPUnit\Framework\TestListener::addError ( Test  $test,
\Exception  $e,
  $time 
)

◆ addFailure()

PHPUnit\Framework\TestListener::addFailure ( Test  $test,
AssertionFailedError  $e,
  $time 
)

◆ addIncompleteTest()

PHPUnit\Framework\TestListener::addIncompleteTest ( Test  $test,
\Exception  $e,
  $time 
)

◆ addRiskyTest()

PHPUnit\Framework\TestListener::addRiskyTest ( Test  $test,
\Exception  $e,
  $time 
)

◆ addSkippedTest()

PHPUnit\Framework\TestListener::addSkippedTest ( Test  $test,
\Exception  $e,
  $time 
)

◆ addWarning()

PHPUnit\Framework\TestListener::addWarning ( Test  $test,
Warning  $e,
  $time 
)

A warning occurred.

Parameters
Test$test
Warning$e
float$time

Implemented in PHPUnit\TextUI\ResultPrinter, and PHPUnit\Framework\TestListenerTest.

◆ endTest()

PHPUnit\Framework\TestListener::endTest ( Test  $test,
  $time 
)

◆ endTestSuite()

PHPUnit\Framework\TestListener::endTestSuite ( TestSuite  $suite)

◆ startTest()

PHPUnit\Framework\TestListener::startTest ( Test  $test)

◆ startTestSuite()

PHPUnit\Framework\TestListener::startTestSuite ( TestSuite  $suite)

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