Table of Contents
Interfaces
- EventSubscriberInterface
- An EventSubscriber knows itself what events it is interested in.
Properties
-
$events
: array<string|int, string>
-
$ansi
: mixed
-
$chars
: mixed
-
$conditionalFails
: mixed
-
$debug
: mixed
-
$failedStep
: mixed
-
$lastTestFailed
: mixed
-
$message
: Message
-
$messageFactory
: MessageFactory
-
$metaStep
: Step
-
$namespace
: mixed
-
$options
: mixed
-
$output
: OutputInterface
-
$printedTest
: mixed
-
$rawStackTrace
: mixed
-
$reports
: mixed
-
$silent
: mixed
-
$steps
: mixed
-
$traceLength
: mixed
-
$width
: mixed
Methods
-
__construct()
: mixed
-
afterResult()
: mixed
-
afterStep()
: mixed
-
afterSuite()
: mixed
-
beforeStep()
: mixed
-
beforeSuite()
: mixed
-
detectWidth()
: mixed
-
endTest()
: mixed
-
getSubscribedEvents()
: mixed
-
printException()
: mixed
-
printExceptionTrace()
: mixed
-
printFail()
: mixed
-
printReports()
: mixed
-
printScenarioFail()
: mixed
-
printScenarioTrace()
: mixed
-
startTest()
: mixed
-
testError()
: mixed
-
testFail()
: mixed
-
testIncomplete()
: mixed
-
testSkipped()
: mixed
-
testSuccess()
: mixed
-
testUseless()
: mixed
-
testWarning()
: mixed
-
isDetailed()
: mixed
-
writeCurrentTest()
: mixed
-
writelnFinishedTest()
: mixed
-
writeTimeInformation()
: mixed
-
absolutePath()
: mixed
-
isWin()
: mixed
-
message()
: Message
-
prepareOptions()
: mixed
-
printStep()
: mixed
$events
public
static array<string|int, string>
$events
= [\Codeception\Events::SUITE_BEFORE => 'beforeSuite', \Codeception\Events::SUITE_AFTER => 'afterSuite', \Codeception\Events::TEST_START => 'startTest', \Codeception\Events::TEST_END => 'endTest', \Codeception\Events::STEP_BEFORE => 'beforeStep', \Codeception\Events::STEP_AFTER => 'afterStep', \Codeception\Events::TEST_SUCCESS => 'testSuccess', \Codeception\Events::TEST_FAIL => 'testFail', \Codeception\Events::TEST_ERROR => 'testError', \Codeception\Events::TEST_INCOMPLETE => 'testIncomplete', \Codeception\Events::TEST_SKIPPED => 'testSkipped', \Codeception\Events::TEST_WARNING => 'testWarning', \Codeception\Events::TEST_USELESS => 'testUseless', \Codeception\Events::TEST_FAIL_PRINT => 'printFail', \Codeception\Events::RESULT_PRINT_AFTER => 'afterResult']
$ansi
protected
mixed
$ansi
= true
$chars
protected
mixed
$chars
= ['success' => '+', 'fail' => 'x', 'of' => ':']
$conditionalFails
protected
mixed
$conditionalFails
= []
$debug
protected
mixed
$debug
= false
$failedStep
protected
mixed
$failedStep
= []
$lastTestFailed
protected
mixed
$lastTestFailed
= false
$message
protected
Message
$message
= null
$messageFactory
protected
MessageFactory
$messageFactory
protected
Step
$metaStep
$namespace
protected
mixed
$namespace
= ''
$options
protected
mixed
$options
= ['debug' => false, 'ansi' => false, 'steps' => true, 'verbosity' => 0, 'xml' => null, 'phpunit-xml' => null, 'html' => null, 'tap' => null, 'json' => null, 'no-artifacts' => false]
$output
protected
OutputInterface
$output
$printedTest
protected
mixed
$printedTest
= null
$rawStackTrace
protected
mixed
$rawStackTrace
= false
$reports
protected
mixed
$reports
= []
$silent
protected
mixed
$silent
= false
$steps
protected
mixed
$steps
= true
$traceLength
protected
mixed
$traceLength
= 5
$width
protected
mixed
$width
__construct()
public
__construct(mixed $options) : mixed
Parameters
-
$options
: mixed
-
afterResult()
public
afterResult(PrintResultEvent $event) : mixed
Parameters
-
$event
: PrintResultEvent
-
afterStep()
public
afterStep(StepEvent $e) : mixed
Parameters
-
$e
: StepEvent
-
afterSuite()
public
afterSuite(SuiteEvent $e) : mixed
Parameters
-
$e
: SuiteEvent
-
beforeStep()
public
beforeStep(StepEvent $e) : mixed
Parameters
-
$e
: StepEvent
-
beforeSuite()
public
beforeSuite(SuiteEvent $e) : mixed
Parameters
-
$e
: SuiteEvent
-
detectWidth()
public
detectWidth() : mixed
endTest()
public
endTest(TestEvent $e) : mixed
Parameters
-
$e
: TestEvent
-
getSubscribedEvents()
public
static getSubscribedEvents() : mixed
printException()
public
printException(mixed $e[, mixed $cause = null ]) : mixed
Parameters
-
$e
: mixed
-
-
$cause
: mixed
= null
-
printExceptionTrace()
public
printExceptionTrace(mixed $e) : mixed
Parameters
-
$e
: mixed
-
printFail()
public
printFail(FailEvent $e) : mixed
Parameters
-
$e
: FailEvent
-
printReports()
public
printReports(TestInterface $failedTest) : mixed
Parameters
-
$failedTest
: TestInterface
-
printScenarioFail()
public
printScenarioFail(ScenarioDriven $failedTest, mixed $fail) : mixed
Parameters
-
$failedTest
: ScenarioDriven
-
-
$fail
: mixed
-
printScenarioTrace()
public
printScenarioTrace(mixed $failedTest) : mixed
Parameters
-
$failedTest
: mixed
-
startTest()
public
startTest(TestEvent $e) : mixed
Parameters
-
$e
: TestEvent
-
testError()
public
testError(FailEvent $e) : mixed
Parameters
-
$e
: FailEvent
-
testFail()
public
testFail(FailEvent $e) : mixed
Parameters
-
$e
: FailEvent
-
testIncomplete()
public
testIncomplete(FailEvent $e) : mixed
Parameters
-
$e
: FailEvent
-
testSkipped()
public
testSkipped(FailEvent $e) : mixed
Parameters
-
$e
: FailEvent
-
testSuccess()
public
testSuccess(TestEvent $e) : mixed
Parameters
-
$e
: TestEvent
-
testUseless()
public
testUseless(FailEvent $event) : mixed
Parameters
-
$event
: FailEvent
-
testWarning()
public
testWarning(TestEvent $e) : mixed
Parameters
-
$e
: TestEvent
-
isDetailed()
protected
isDetailed(mixed $test) : mixed
Parameters
-
$test
: mixed
-
writeCurrentTest()
protected
writeCurrentTest(SelfDescribing $test[, bool $inProgress = true ]) : mixed
Parameters
-
$test
: SelfDescribing
-
-
$inProgress
: bool
= true
-
writelnFinishedTest()
protected
writelnFinishedTest(TestEvent $event, Message $result) : mixed
Parameters
-
$event
: TestEvent
-
-
$result
: Message
-
protected
writeTimeInformation(TestEvent $event) : mixed
Parameters
-
$event
: TestEvent
-
absolutePath()
private
absolutePath(mixed $path) : mixed
Parameters
-
$path
: mixed
-
isWin()
private
isWin() : mixed
message()
private
message([mixed $string = '' ]) : Message
Parameters
-
$string
: mixed
= ''
-
prepareOptions()
private
prepareOptions(mixed $options) : mixed
Parameters
-
$options
: mixed
-
printStep()
private
printStep(Step $step) : mixed
Parameters
-
$step
: Step
-