Rx\Functional\Operator\SumTest::sum_number_throw PHP Method

sum_number_throw() public method

Adapted from RxJS
public sum_number_throw ( )
    public function sum_number_throw()
    {
        $xs = $this->createHotObservable([onNext(150, 1), onError(210, new \Exception())]);
        $results = $this->scheduler->startWithCreate(function () use($xs) {
            return $xs->sum();
        });
        $this->assertMessages([onError(210, new \Exception())], $results->getMessages());
    }