public static function setUpBeforeClass()
 {
     $client = new NextCallerClient(null, null, true);
     $mocker = new \Guzzle\Plugin\Mock\MockPlugin();
     $mocker->addResponse(new \Guzzle\Http\Message\Response(200, array(), self::JSON_RESPONSE));
     $client->addSubscriber($mocker);
     self::$client = $client;
     self::$mock = $mocker;
 }
 public static function setUpBeforeClass()
 {
     $client = new NextCallerClient(null, null, true);
     $mocker = new \Guzzle\Plugin\Mock\MockPlugin();
     $mocker->addResponse(new \Guzzle\Http\Message\Response(404, array(), '{"error": {"message": "Resource hasn\'t been found .", "code": "404", "type": "Bad Request"}}'));
     $mocker->addResponse(new \Guzzle\Http\Message\Response(400, array(), '{"error": {"message": "The profile id you have entered is invalid. Please ensure your profile id contains 30 symbols.", "code": "558", "type": "Bad Request"}}'));
     $mocker->addResponse(new \Guzzle\Http\Message\Response(400, array(), '{"error": {"message": "Validation Error", "code": "422", "type": "Unprocessable Entity", "description": {"email": ["Invalid email address"]}}}'));
     $mocker->addResponse(new \Guzzle\Http\Message\Response(429, array('X-Rate-Limit-Limit' => '7', 'X-Rate-Limit-Remaining' => '0', 'X-Rate-Limit-Reset' => '1441286043'), '{"error": {"message": "API calls per second limit is exceeded.", "code": "1061", "type": "Too Many Requests"}}'));
     $client->addSubscriber($mocker);
     self::$client = $client;
     self::$mock = $mocker;
 }