public function testAddClientData() { $query = new AfsQuery(); $ids = array(1, 2, 3); $id = 4; $query->add_client_data($id); $query->add_client_data($ids); $parameters = $query->get_parameters(); $clientData = $parameters['clientData']; $this->assertEquals(4, count($clientData)); for ($i = 1; $i <= 4; $i++) { $this->assertTrue(in_array($i, $clientData)); } }