예제 #1
0
 /**
  * @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);
 }
예제 #2
0
 /**
  * @expectedException \UnexpectedValueException
  * @expectedExceptionMessage Invalid authenticate data of api key or secret
  */
 public function testProjectsLanguagesDetectInvalidAuthentication()
 {
     $this->api->projects('languages', ['project_id' => 123]);
 }