\Cake\TestSuite\ConstraintEventFiredWith

EventFiredWith constraint

Summary

Methods
Properties
Constants
__construct()
matches()
toString()
No public properties found
No constants found
No protected methods found
$_eventManager
$_dataKey
$_dataValue
N/A
No private methods found
No private properties found
N/A

Properties

$_dataKey

$_dataKey : string

Event data key

Type

string

$_dataValue

$_dataValue : string

Event data value

Type

string

Methods

__construct()

__construct(\Cake\Event\EventManager  $eventManager, string  $dataKey, string  $dataValue) 

Constructor

Parameters

\Cake\Event\EventManager $eventManager

Event manager to check

string $dataKey

Data key

string $dataValue

Data value

matches()

matches(mixed  $other) : boolean

Checks if event is in fired array

Parameters

mixed $other

Constraint check

Returns

boolean

toString()

toString() : string

Assertion message string

Returns

string