public function testExceptionStopsIteration() { $loop = new Loop(); $loop->execute(function () { throw new \DomainException(); }); }