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