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 generateDebugMethodName(\PhpSpock\Event $event) { $methodName = 'test__spec_debug_' . $this->getMethod()->getName() . '_Variant' . $event->getAttribute('variant'); return $methodName; }