React\Promise\FulfilledPromiseTest::shouldThrowExceptionIfConstructedWithAPromise PHP Method

shouldThrowExceptionIfConstructedWithAPromise() public method

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