Rx\Functional\Operator\StartWithTest::startWith_empty PHP Method

startWith_empty() public method

public startWith_empty ( )
    public function startWith_empty()
    {
        $xs = $this->createHotObservable([onNext(150, 1), onCompleted(250)]);
        $results = $this->scheduler->startWithCreate(function () use($xs) {
            return $xs->startWith(1);
        });
        $this->assertMessages([onNext(201, 1), onCompleted(250)], $results->getMessages());
    }