Автор: Alexander Miertsch (contact@prooph.de)
Наследование: implements Prooph\EventStore\Aggregate\AggregateTranslator
 /**
  * @test
  * @expectedException Prooph\EventStore\Aggregate\Exception\AggregateTranslationFailedException
  */
 public function it_fails_when_popped_recorded_events_are_not_an_array_or_traversable()
 {
     $ar = $this->prophesize(DefaultAggregateRootContract::class);
     $ar->popRecordedEvents()->willReturn('invalid');
     $translator = new ConfigurableAggregateTranslator();
     $translator->extractPendingStreamEvents($ar->reveal());
 }