Rx\Functional\Operator\BufferWithCountTest::bufferWithCountfullandpartialwindows PHP Method

bufferWithCountfullandpartialwindows() public method

    public function bufferWithCountfullandpartialwindows()
    {
        $xs = $this->createHotObservable([onNext(150, 1), onNext(210, 2), onNext(220, 3), onNext(230, 4), onNext(240, 5), onCompleted(250)]);
        $results = $this->scheduler->startWithCreate(function () use($xs) {
            return $xs->bufferWithCount(3);
        });
        $this->assertMessages([onNext(230, [2, 3, 4]), onNext(250, [5]), onCompleted(250)], $results->getMessages());
    }