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