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

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

    public function testApiDone_ThrowsException_WhenHandlerRejectsWithException_ForRejectedPromise()
    {
        $deferred = $this->createDeferred();
        $test = $this->getTest();
        $test->setExpectedException(Exception::class, 'RejectionException');
        $deferred->reject(new Exception('RejectionException'));
        $test->assertNull($deferred->getPromise()->done());
    }
PromiseRejectedPartial