/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/TestSuite/Constraint
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/TestSuite/Constraint/EventFired.php (1849B)
_eventManager = $eventManager;
if ($this->_eventManager->getEventList() === null) {
throw new AssertionFailedError(
'The event manager you are asserting against is not configured to track events.'
);
}
}
/**
* Checks if event is in fired array
*
* @param mixed $other Constraint check
* @return bool
*/
public function matches($other): bool
{
$list = $this->_eventManager->getEventList();
return $list === null ? false : $list->hasEvent($other);
}
/**
* Assertion message string
*
* @return string
*/
public function toString(): string
{
return 'was fired';
}
}