protected function setUp()
 {
     parent::setUp();
     $this->response = array('headers' => array('Server' => 'nginx', 'Content-Type' => 'application/json; charset=UTF-8', 'Content-Length' => '151', 'Connection' => 'close', 'Date' => 'Thu, 12 Mar 2015 16:55:12 GMT'), 'body' => '{"organization_user": "******", "user_push_id": "User Push Id", "user_hash": "User Hash", "auth": "Encrypted Auth"}', 'response' => array('code' => 200, 'message' => 'OK'), 'cookies' => array(), 'filename' => null);
     $this->pendingResponse = array('headers' => array('Server' => 'nginx', 'Content-Type' => 'application/json; charset=UTF-8', 'Content-Length' => '111', 'Connection' => 'close', 'Date' => 'Thu, 12 Mar 2015 16:55:12 GMT'), 'body' => '{"successful": false, "status_code": 400, "message": "Pending response", "message_code": 70403, "response": ""}', 'response' => array('code' => 400, 'message' => 'Bad Request'), 'cookies' => array(), 'filename' => null);
     \Phake::when($this->cryptService)->decryptRSA(\Phake::anyParameters())->thenReturn('{ "device_id": "Device ID", "response": "true", "auth_request": "Auth Request", "app_pins": "APP,PINS"}');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->response = array('headers' => array('Server' => 'nginx', 'Content-Type' => 'application/json; charset=UTF-8', 'Content-Length' => '188', 'Connection' => 'close', 'Date' => 'Thu, 12 Mar 2015 16:55:12 GMT'), 'body' => '{"successful": true, "status_code": 201, "message": "", "message_code": 10220, "response": {"cipher": "Base64 Encrypted RSA Encrypted Cipher", "data": "Base64 Encoded AES Encrypted Data"}}', 'response' => array('code' => 201, 'message' => 'OK'), 'cookies' => array(), 'filename' => null);
     \Phake::when($this->cryptService)->decryptAES(\Phake::anyParameters())->thenReturn('{"qrcode": "' . $this->qrCodeUrl . '", "code": "' . $this->code . '"}');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->response = array('headers' => array('Server' => 'nginx', 'Content-Type' => 'application/json; charset=UTF-8', 'Content-Length' => '36', 'Connection' => 'close', 'Date' => 'Thu, 12 Mar 2015 16:55:12 GMT'), 'body' => '{"message" : "Successfully updated"}', 'response' => array('code' => 200, 'message' => 'OK'), 'cookies' => array(), 'filename' => null);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->response = array('headers' => array('Server' => 'nginx', 'Content-Type' => 'application/json; charset=UTF-8', 'Content-Length' => '553', 'Connection' => 'keep-alive', 'Date' => 'Thu, 12 Mar 2015 16:55:12 GMT'), 'body' => '{"date_stamp": "2013-04-20 21:40:02", "launchkey_time": "2015-03-12 16:55:12", "key": "-----BEGIN PUBLIC KEY-----\\n\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8zQos4iDSjmUVrFUAg5G\\nuhU6GehNKb8MCXFadRWiyLGjtbGZAk8fusQU0Uj9E3o0mne0SYESACkhyK+3M1Er\\nbHlwYJHN0PZHtpaPWqsRmNzui8PvPmhm9QduF4KBFsWu1sBw0ibBYsLrua67F/wK\\nPaagZRnUgrbRUhQuYt+53kQNH9nLkwG2aMVPxhxcLJYPzQCat6VjhHOX0bgiNt1i\\nHRHU2phxBcquOW2HpGSWcpzlYgFEhPPQFAxoDUBYZI3lfRj49gBhGQi32qQ1YiWp\\naFxOB8GA0Ny5SfI67u6w9Nz9Z9cBhcZBfJKdq5uRWjZWslHjBN3emTAKBpAUPNET\\nnwIDAQAB\\n\\n-----END PUBLIC KEY-----\\n"}', 'response' => array('code' => 200, 'message' => 'OK'), 'cookies' => array(), 'filename' => null);
 }