React\Promise\RejectedPromiseTest::shouldThrowExceptionIfConstructedWithAPromise PHP Method

shouldThrowExceptionIfConstructedWithAPromise() public method

    public function shouldThrowExceptionIfConstructedWithAPromise()
    {
        $this->setExpectedException('\\InvalidArgumentException');
        return new RejectedPromise(new RejectedPromise());
    }