Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester Class Reference
Inheritance diagram for Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester:

Public Member Functions

 __construct (StepTester $steptester)
 Constructor.
 
 setEventDispatcher (EventDispatcherInterface $eventdispatcher)
 Set event dispatcher to use for events.
 
 setUp (Environment $env, FeatureNode $feature, StepNode $step, $skip)
 Sets up step for a test.
 
 tearDown (Environment $env, FeatureNode $feature, StepNode $step, $skip, StepResult $result)
 Tears down step after a test.
 
 test (Environment $env, FeatureNode $feature, StepNode $step, $skip)
 Tests step.
 

Static Public Member Functions

static is_chained_step_used ()
 Returns if cahined steps are used.
 

Public Attributes

const EXCEPTIONS_STEP_TEXT = 'I look for exceptions'
 The text of the step to look for exceptions / debugging messages.
 

Static Protected Attributes

static bool $chainedstepused = false
 Keep status of chained steps if used.
 

Constructor & Destructor Documentation

◆ __construct()

Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester::__construct ( StepTester $steptester)

Constructor.

Parameters
StepTester$steptestersingle step tester.

Member Function Documentation

◆ is_chained_step_used()

static Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester::is_chained_step_used ( )
static

Returns if cahined steps are used.

Return values
bool.

◆ setEventDispatcher()

Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester::setEventDispatcher ( EventDispatcherInterface $eventdispatcher)

Set event dispatcher to use for events.

Parameters
EventDispatcherInterface$eventdispatcher

◆ setUp()

Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester::setUp ( Environment $env,
FeatureNode $feature,
StepNode $step,
$skip )

Sets up step for a test.

Parameters
Environment$env
FeatureNode$feature
StepNode$step
bool$skip
Return values
Setup

◆ tearDown()

Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester::tearDown ( Environment $env,
FeatureNode $feature,
StepNode $step,
$skip,
StepResult $result )

Tears down step after a test.

Parameters
Environment$env
FeatureNode$feature
StepNode$step
bool$skip
StepResult$result
Return values
Teardown

◆ test()

Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester::test ( Environment $env,
FeatureNode $feature,
StepNode $step,
$skip )

Tests step.

Parameters
Environment$env
FeatureNode$feature
StepNode$step
bool$skip
Return values
StepResult

The documentation for this class was generated from the following file: