Kraken\_Unit\Promise\_Partial\ApiRejectPartial::testApiDone_Recovers_WhenRejectionHandlerCatchesException PHP Метод

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

    public function testApiDone_Recovers_WhenRejectionHandlerCatchesException()
    {
        $deferred = $this->createDeferred();
        $test = $this->getTest();
        $test->assertNull($deferred->getPromise()->done(null, function ($exception) {
        }));
        $deferred->reject(new Exception('UnhandledRejectionException'));
    }