function it_dispatches_SpecificationEvent_before_and_after_examples_run(EventDispatcherInterface $dispatcher, SpecificationNode $specification)
{
$specification->getExamples()->willReturn(array());
$dispatcher->dispatch('beforeSpecification', Argument::type('PhpSpec\\Event\\SpecificationEvent'))->shouldBeCalled();
$dispatcher->dispatch('afterSpecification', Argument::type('PhpSpec\\Event\\SpecificationEvent'))->shouldBeCalled();
$this->run($specification);
}