public function testApiIsCancelled_ReturnsFalse_ForCancelledPromise()
{
$deferred = $this->createDeferred();
$test = $this->getTest();
$deferred->cancel();
$test->assertTrue($deferred->getPromise()->isCancelled());
}