public function reduce_accumulator_throws()
{
$xs = $this->createHotObservable([onNext(150, 1), onNext(210, 2), onNext(230, 3), onCompleted(240)]);
$results = $this->scheduler->startWithCreate(function () use($xs) {
return $xs->reduce(function () {
throw new \Exception();
});
});
$this->assertMessages([onError(230, new \Exception())], $results->getMessages());
}