function it_outputs_progress_on_afterexample_event(SpecificationEvent $specEvent, ExampleEvent $exampleEvent, ExampleNode $example, SpecificationNode $spec, ConsoleIO $io, StatisticsCollector $stats)
{
$specEvent->getSpecification()->willReturn($spec);
$exampleEvent->getExample()->willReturn($example);
$exampleEvent->getResult()->willReturn(ExampleEvent::PASSED);
$example->getTitle()->willReturn('it foobar');
$spec->getTitle()->willReturn('spec1');
$this->beforeSpecification($specEvent);
$this->afterExample($exampleEvent);
$example->getTitle()->willReturn('its foobar');
$spec->getTitle()->willReturn('spec2');
$this->beforeSpecification($specEvent);
$this->afterExample($exampleEvent);
$expected1 = 'ok 1 - spec1: foobar';
$expected2 = 'ok 2 - spec2: foobar';
$io->writeln($expected1)->shouldHaveBeenCalled();
$io->writeln($expected2)->shouldHaveBeenCalled();
}