React\Promise\FulfilledPromiseTest::shouldThrowExceptionIfConstructedWithAPromise PHP Метод

shouldThrowExceptionIfConstructedWithAPromise() публичный Метод

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