public function testApiAlways_ReturnsPromise_ForPendingPromise() { $deferred = $this->createDeferred(); $test = $this->getTest(); $test->assertInstanceOf(PromiseInterface::class, $deferred->getPromise()->always(function () { })); }