Rx\Functional\Operator\SelectTest::calls_on_error_if_selector_throws_an_exception PHP Метод

calls_on_error_if_selector_throws_an_exception() публичный Метод

    public function calls_on_error_if_selector_throws_an_exception()
    {
        $xs = $this->createHotObservable([onNext(500, 42)]);
        $results = $this->scheduler->startWithCreate(function () use($xs) {
            return $xs->select(function () {
                throw new Exception();
            });
        });
        $this->assertMessages([onError(500, new Exception())], $results->getMessages());
    }