Rx\Functional\Operator\MinTest::min_number_throw PHP Method

min_number_throw() public method

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