public function test_upsert() { $client = new Socrata("soda.demo.socrata.com", getenv("APP_TOKEN"), getenv("SOCRATA_USER"), getenv("SOCRATA_PASSWORD")); $update = array(array("id" => "42", "name" => "answer to everything")); // Post our response $response = $client->post("wezw-qxis", json_encode($update)); // Check that the response looks like what we want $this->assertArrayHasKey("Rows Updated", $response); }