SymfonyTestsListenerTrait

class SymfonyTestsListenerTrait

PHP 5.3 compatible trait-like shared implementation.

Methods

__construct(array $mockedNamespaces = array())
__destruct()
globalListenerDisabled()
startTestSuite($suite)
addSkippedTest($test, Exception $e, $time)
startTest($test)
addWarning($test, $e, $time)
endTest($test, $time)
handleError($type, $msg, $file, $line, $context = array())

Details

__construct(array $mockedNamespaces = array())

Parameters

array $mockedNamespaces List of namespaces, indexed by mocked features (time-sensitive or dns-sensitive)

__destruct()

globalListenerDisabled()

startTestSuite($suite)

Parameters

$suite

addSkippedTest($test, Exception $e, $time)

Parameters

$test
Exception $e
$time

startTest($test)

Parameters

$test

addWarning($test, $e, $time)

Parameters

$test
$e
$time

endTest($test, $time)

Parameters

$test
$time

handleError($type, $msg, $file, $line, $context = array())

Parameters

$type
$msg
$file
$line
$context

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.html