Example #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');
 }
Example #2
0
 public function onModifyAssertCount(\PhpSpock\Event $event)
 {
     $class = get_class($this->test);
     //var_dump();
     $event->setAttribute('count', $event->getAttribute('count') + $class::getCount());
 }