Class EventFired
EventFired constraint
Namespace: Cake\TestSuite\Constraint
Property Summary
-
$_eventManager protected
EventManager
Array of fired events
Method Summary
-
__construct() public
Constructor
-
matches() public
Checks if event is in fired array
-
toString() public
Assertion message string
Method Detail
__construct() ¶ public
__construct(EventManager $eventManager)
Constructor
Parameters
-
EventManager
$eventManager Event manager to check
matches() ¶ public
matches(mixed $other): bool
Checks if event is in fired array
Parameters
-
mixed
$other Constraint check
Returns
bool