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