public function testOtherwiseIsSugarForRejections() { $c = null; $p = new FulfilledPromise('foo'); $p->otherwise(function ($v) use(&$c) { $c = $v; }); $this->assertNull($c); }