public function testSetApiResponse()
 {
     $response = new Response();
     $myArray = array("foo" => "bar");
     $response->setApiResponse(json_encode($myArray));
     $this->assertEquals($myArray, $response->getResponse());
 }
Exemple #2
0
 /**
  * Returns an Array of valid browser/OS combinations that can be used
  * for requests. This request actually doesn't need Authorization.
  *
  * @return mixed
  */
 public function getBrowsers()
 {
     $res = new Response();
     $res->setApiResponse($this->_request('browsers.json'));
     return $res->getResponse();
 }