Exemple #1
0
 public function testThatResolveIsUnit()
 {
     $promise = Promise::unit(1);
     $this->assertEquals('Promise(1)', (string) $promise);
     $this->assertEquals('fulfilled', $promise->getState());
 }