public function testNoErrorsrch() { $nw = new NewWorld(); $toa = $nw->GetAPICon(); $str = '#Verizon'; $query = array("q" => rawurlencode($str), "count" => 100, "result_type" => "recent"); $this->assertArrayNotHasKey('error', (array) $nw->GetSearchTweet($toa, $query)); }