Esempio n. 1
0
 public function giveEventListenersAChanceToModifyAssertionCount($assertionCount)
 {
     $event = new Event();
     $event->setAttribute('count', $assertionCount);
     $this->getEventDispatcher()->dispatch(Event::EVENT_MODIFY_ASSERTION_COUNT, $event);
     return $event->getAttribute('count');
 }
Esempio n. 2
0
 public function generateDebugMethodName(\PhpSpock\Event $event)
 {
     $methodName = 'test__spec_debug_' . $this->getMethod()->getName() . '_Variant' . $event->getAttribute('variant');
     return $methodName;
 }