Rx\Functional\Operator\DistinctTest::distinct_default_comparer_dispose PHP Method

distinct_default_comparer_dispose() public method

    public function distinct_default_comparer_dispose()
    {
        $xs = $this->createHotObservable([onNext(280, 4), onNext(300, 2), onNext(350, 2), onNext(380, 3), onNext(400, 4), onCompleted(420)]);
        $results = $this->scheduler->startWithDispose(function () use($xs) {
            return $xs->distinct();
        }, 360);
        $this->assertMessages([onNext(280, 4), onNext(300, 2)], $results->getMessages());
        $this->assertSubscriptions([subscribe(200, 360)], $xs->getSubscriptions());
    }