HumHub Documentation (unofficial)

Console
in package
implements EventSubscriberInterface uses StaticEvents

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

Properties

$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']

$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

$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]

$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

Methods

__construct()

public __construct(mixed $options) : mixed
Parameters
$options : mixed

detectWidth()

public detectWidth() : mixed

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

printScenarioTrace()

public printScenarioTrace(mixed $failedTest) : mixed
Parameters
$failedTest : mixed

isDetailed()

protected isDetailed(mixed $test) : mixed
Parameters
$test : mixed

absolutePath()

private absolutePath(mixed $path) : mixed
Parameters
$path : mixed

message()

private message([mixed $string = '' ]) : Message
Parameters
$string : mixed = ''
Return values
Message

prepareOptions()

private prepareOptions(mixed $options) : mixed
Parameters
$options : mixed

        
On this page

Search results