CiviTestListener
class CiviTestListener extends PHPUnit_Framework_BaseTestListener
Class CiviTestListener
Methods
No description
No description
No description
No description
No description
No description
The first time we come across HeadlessInterface or EndToEndInterface, we'll try to autoboot.
Call the "cv" command.
No description
Ensure that any tests have sensible groups, e.g.
Details
at line 35
startTestSuite(PHPUnit_Framework_TestSuite $suite)
at line 41
endTestSuite(PHPUnit_Framework_TestSuite $suite)
at line 45
startTest(PHPUnit_Framework_Test $test)
at line 69
endTest(PHPUnit_Framework_Test $test, $time)
at line 86
protected
bootHeadless(HeadlessInterface|PHPUnit_Framework_Test $test)
at line 113
protected array
findTestHooks(HookInterface $test)
at line 131
protected bool
isCiviTest(PHPUnit_Framework_Test $test)
at line 140
protected
registerHooks(HookInterface $test)
Find any hook functions in $test and register them.
at line 165
protected
autoboot(array $byInterface)
The first time we come across HeadlessInterface or EndToEndInterface, we'll try to autoboot.
Once the system is booted, there's nothing we can do -- we're stuck with that environment. (Thank you, prolific define()s!) If there's a conflict between a test-class and the active boot-level, then we'll have to bail.
at line 213
protected string
cv(string $cmd, string $decode = 'json')
Call the "cv" command.
This duplicates the standalone cv()
wrapper that is recommended in bootstrap.php.
This duplication is necessary because cv()
is optional, and downstream implementers
may alter, rename, or omit the wrapper, and (by virtue of its role in bootstrap) there
it is impossible to define it centrally.
at line 249
protected array
indexTestsByInterface($tests)
at line 271
protected
validateGroups(array $byInterface)
Ensure that any tests have sensible groups, e.g.
HeadlessInterface
==> group headless
EndToEndInterface
==> group e2e