public function testCannotCancel() { $p = new FulfilledPromise('foo'); $this->assertEquals('fulfilled', $p->getState()); $p->cancel(); $this->assertEquals('foo', $p->wait()); }