Rx\Functional\Operator\TimestampTest::timestamp_error PHP Method

timestamp_error() public method

public timestamp_error ( )
    public function timestamp_error()
    {
        $error = new \Exception();
        $results = $this->scheduler->startWithCreate(function () use($error) {
            return Observable::error($error)->timestamp($this->scheduler);
        });
        $this->assertMessages([onError(201, $error)], $results->getMessages());
    }