public function testGetContactsModifiedSince() { $curlResponse = CurlResponse::create(JsonLoader::getContactsModifiedSinceJson(), array('modified_since' => '2013-01-12T20:04:59.436Z', 'limit' => 2)); $this->restClient->expects($this->once())->method('get')->with()->will($this->returnValue($curlResponse)); $response = $this->contactService->getContacts('access_token', array('limit' => 2)); $this->assertInstanceOf("Ctct\\Components\\ResultSet", $response); $contact = $response->results[0]; $this->assertEquals('c3RhcnRBdD0yMjQmbGltaXQ9Mg', $response->next); $this->assertEquals('1', $contact->id); $this->assertEquals('John', $contact->first_name); $this->assertEquals('Doe', $contact->last_name); $this->assertEquals('6', $response->results[1]->id); $this->assertEquals('ACTIVE', $response->results[1]->status); }