/**
  * @expectedException \Chatwork\Exception\UnauthorizedException
  */
 public function testExecuteWhenHTTPFailed()
 {
     $fixture = $this->loadFixture("errors.json");
     $decoded_fixture = json_decode($fixture, true);
     $client = new \Chatwork\API\Client();
     $strategy = new \Chatwork\Strategy\API\V1Strategy(array("driver" => $this->getMockDriver(array(array("HTTP_CODE" => 401, "Content-Type" => "application/json"), $fixture))));
     $client->setStrategy($strategy);
     $result = $client->getRoomFiles(1);
 }
 /**
  * @expectedException \Chatwork\Exception\UnauthorizedException
  */
 public function testExecuteWhenHTTPFailed()
 {
     $fixture = $this->loadFixture("errors.json");
     $decoded_fixture = json_decode($fixture, true);
     $client = new \Chatwork\API\Client();
     $strategy = new \Chatwork\Strategy\API\V1Strategy(array("driver" => $this->getMockDriver(array(array("HTTP_CODE" => 401, "Content-Type" => "application/json"), $fixture))));
     $client->setStrategy($strategy);
     $result = $client->updateRoomMembers(123, array(123, 542, 1001), array("members_member_ids" => array(10, 103), "members_readonly_ids" => array(6, 11)));
 }
 /**
  * @expectedException \Chatwork\Exception\UnauthorizedException
  */
 public function testExecuteWhenHTTPFailed()
 {
     $fixture = $this->loadFixture("errors.json");
     $decoded_fixture = json_decode($fixture, true);
     $client = new \Chatwork\API\Client();
     $strategy = new \Chatwork\Strategy\API\V1Strategy(array("driver" => $this->getMockDriver(array(array("HTTP_CODE" => 401, "Content-Type" => "application/json"), $fixture))));
     $client->setStrategy($strategy);
     $result = $client->updateRoomInfo(123, array("description" => "room description text", "name" => "Group Chat Name"));
 }