public function testApiConstructor_CreatesInstance() { $ex = $this->createError('Error'); $this->assertInstanceOf(Error::class, $ex); $this->assertInstanceOf(\Error::class, $ex); }