public function testApiAlways_DoesNotSuppressRejection_ForRejectedPromise()
{
$deferred = $this->createDeferred();
$test = $this->getTest();
$exception = new Exception();
$mock = $test->createCallableMock();
$mock->expects($test->once())->method('__invoke')->with($test->identicalTo($exception));
$deferred->reject($exception);
$deferred->getPromise()->always($test->expectCallableOnce())->then(null, $mock);
}