public function testParseJSONIDs() { $api = new TwitterAPIAccessorOAuth($oauth_access_token = '111', $oauth_access_token_secret = '222', $oauth_consumer_key = 1234, $oauth_consumer_secret = 1234, $num_twitter_errors = 5, $log = true); //List of users with cursor $data = file_get_contents(THINKUP_ROOT_PATH . $this->test_data_path . 'json/idslist.json'); $results = $api->parseJSONIDs($data); $this->debug(Utils::varDumpToString($results)); $this->assertEqual($results[0]["id"], 14232986); $this->assertEqual($results[1]["id"], 12428572); $this->assertEqual($results[2]["id"], 657693); //@TODO Test No cursor //$data = file_get_contents(THINKUP_ROOT_PATH . $this->test_data_path.'json/ids.json'); //$results = $api->parseJSONIDs($data); }