Class EventFired
EventFired constraint
- PHPUnit_Framework_Constraint
-   Cake\TestSuite\Constraint\EventFired Cake\TestSuite\Constraint\EventFired
Properties summary
-  Array of fired events$_eventManagerprotected
Method Summary
-  __construct() publicConstructor
-  matches() publicChecks if event is in fired array
-  toString() publicAssertion message string
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
booleanProperties detail
    © 2005–2016 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.
    http://api.cakephp.org/3.2/class-Cake.TestSuite.Constraint.EventFired.html