public function shouldResolveACancellableThenable() { $thenable = new SimpleTestCancellableThenable(); $promise = resolve($thenable); $promise->cancel(); $this->assertTrue($thenable->cancelCalled); }