public static function setUpBeforeClass()
 {
     self::$client = new Client();
     $verifiedAddressStream = Stream::factory(JsonLoader::getVerifiedAddressesJson());
     $accountInfoStream = Stream::factory(JsonLoader::getAccountInfoJson());
     $mock = new Mock([new Response(200, array(), $verifiedAddressStream), new Response(200, array(), $accountInfoStream)]);
     self::$client->getEmitter()->attach($mock);
 }
 public function testGetVerifiedAddresses()
 {
     $curlResponse = CurlResponse::create(JsonLoader::getVerifiedAddressesJson(), array('http_code' => 200));
     $this->restClient->expects($this->once())->method('get')->with()->will($this->returnValue($curlResponse));
     $response = $this->accountService->getVerifiedEmailAddresses("accessToken", array());
     $this->assertInstanceOf('Ctct\\Components\\Account\\VerifiedEmailAddress', $response[0]);
     $this->assertEquals("*****@*****.**", $response[0]->email_address);
     $this->assertEquals("CONFIRMED", $response[0]->status);
 }