public function giveEventListenersAChanceToModifyAssertionCount($assertionCount) { $event = new Event(); $event->setAttribute('count', $assertionCount); $this->getEventDispatcher()->dispatch(Event::EVENT_MODIFY_ASSERTION_COUNT, $event); return $event->getAttribute('count'); }
public function onModifyAssertCount(\PhpSpock\Event $event) { $class = get_class($this->test); //var_dump(); $event->setAttribute('count', $event->getAttribute('count') + $class::getCount()); }