CiviTestListener
class CiviTestListener extends BaseTestListener
Class CiviTestListener
Methods
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 42
startTestSuite(TestSuite $suite)
at line 48
endTestSuite(TestSuite $suite)
at line 52
startTest(Test $test)
at line 77
endTest(Test $test, $time)
at line 94
protected
bootHeadless(HeadlessInterface|Test $test)
at line 121
protected array
findTestHooks(HookInterface $test)
at line 139
protected bool
isCiviTest(Test $test)
at line 148
protected
registerHooks(HookInterface $test)
Find any hook functions in $test and register them.
at line 173
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 221
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 257
protected array
indexTestsByInterface($tests)
at line 279
protected
validateGroups(array $byInterface)
Ensure that any tests have sensible groups, e.g.
HeadlessInterface
==> group headless
EndToEndInterface
==> group e2e