/** * Test creating a \Google_Client from JSON service file */ public function testCreateClientFromJSON() { $obj_client = \GDS\Gateway\GoogleAPIClient::createClientFromJson(dirname(__FILE__) . '/base/service.json'); $this->assertInstanceOf('\\Google_Client', $obj_client); $this->assertInstanceOf('\\Google_Auth_OAuth2', $obj_client->getAuth()); }