assertSame($id, $result->getId()); } public function testPromise() { $value = 1; $result = new TaskSuccess('a', $value); $this->assertSame($value, Promise\wait($result->promise())); } }