/** * @return array */ private function getAllLocales() { $raw = $this->client->projects('languages', array('project_id' => $this->project)); $response = json_decode($raw, true); $data = $response['data']; return array_map(function ($item) { return $item['locale']; }, $data); }
/** * @expectedException \UnexpectedValueException * @expectedExceptionMessage Invalid authenticate data of api key or secret */ public function testProjectsLanguagesDetectInvalidAuthentication() { $this->api->projects('languages', ['project_id' => 123]); }