Kraken\_Unit\Promise\PromiseCancelledTest::testApiConstructor_ThrowsException_IfConstructedWithPromise PHP Метод

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

    public function testApiConstructor_ThrowsException_IfConstructedWithPromise()
    {
        $this->setExpectedException(InvalidArgumentException::class);
        $promise = new PromiseCancelled(new PromiseCancelled());
    }