getClientRoutes(); $interface = new ApiInterface(); $request = new Request( HttpMethods::make(\strtolower($routes['apiV2.ping']['methods'][0])), $routes['apiV2.ping']['uri'] ); $response = $interface->call($request); $this->assertEquals(ApiStatus::OK(), $response->status); } public function testClientPing() { $api = new CrmApiV2(); $this->assertTrue($api->ping()); } public function testApiAuthenticate() { $refClass = new ReflectionClass(ApiInterface::class); $refMeth = $refClass->getMethod('authenticate'); $refMeth->setAccessible(true); $this->assertTrue($refMeth->invoke(new ApiInterface())); } }