public function testApiConstructor_ThrowsException_IfConstructedWithPromise() { $this->setExpectedException(InvalidArgumentException::class); $promise = new PromiseCancelled(new PromiseCancelled()); }