Rx\Functional\Operator\DelayTest::delay_relative_time_simple_3_implementation PHP Method

delay_relative_time_simple_3_implementation() public method

    public function delay_relative_time_simple_3_implementation()
    {
        $xs = $this->createHotObservable([onNext(150, 1), onNext(250, 2), onNext(350, 3), onNext(450, 4), onCompleted(550)]);
        $results = $this->scheduler->startWithCreate(function () use($xs) {
            return $xs->delay(150, $this->scheduler);
        });
        $this->assertMessages([onNext(400, 2), onNext(500, 3), onNext(600, 4), onCompleted(700)], $results->getMessages());
        $this->assertSubscriptions([subscribe(200, 550)], $xs->getSubscriptions());
    }