W3cubDocs

/CakePHP 3.4

Class EventFired

EventFired constraint

PHPUnit\Framework\Constraint\Constraint
Extended by Cake\TestSuite\Constraint\EventFired

Properties summary

Method Summary

Method Detail

__construct()source public

__construct( Cake\Event\EventManager $eventManager )

Constructor

Parameters

Cake\Event\EventManager $eventManager
Event manager to check

matches()source public

matches( mixed $other )

Checks if event is in fired array

Parameters

mixed $other
Constraint check

Returns

boolean

toString()source public

toString( )

Assertion message string

Returns

string

Properties detail

$_eventManagersource

protected Cake\Event\EventManager

Array of fired events

© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.TestSuite.Constraint.EventFired.html