Kraken\_Unit\Promise\_Partial\PromiseRejectedPartial::testApiDone_ThrowsException_WhenHandlerRejectsWithRejectedEmptyPromise_ForRejectedPromise PHP Метод

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

    public function testApiDone_ThrowsException_WhenHandlerRejectsWithRejectedEmptyPromise_ForRejectedPromise()
    {
        $deferred = $this->createDeferred();
        $test = $this->getTest();
        $test->setExpectedException(RejectionException::class);
        $deferred->reject(1);
        $test->assertNull($deferred->getPromise()->done(null, function () {
            return Promise::doReject();
        }));
    }
PromiseRejectedPartial