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

bufferWithCountfullwindows() public method

    public function bufferWithCountfullwindows()
    {
        $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(2);
        });
        $this->assertMessages([onNext(220, [2, 3]), onNext(240, [4, 5]), onCompleted(250)], $results->getMessages());
    }