Skip to content

Commit

Permalink
Added test to disprove #70
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMallison committed May 11, 2015
1 parent 28e50e3 commit b89554a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/TwitterAPIExchangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,21 @@ public function testAdditionalCurlOptions()

$this->assertNotCount(1, $data);
}

/**
* Apparently users/lookup was not working with a POST
*
* @see https://github.com/J7mbo/twitter-api-php/issues/70
*/
public function testIssue70()
{
$url = 'https://api.twitter.com/1.1/users/lookup.json';
$method = 'POST';
$params = array(
'screen_name' => 'lifehacker'
);

$data = $this->exchange->request($url, $method, $params);
$this->assertContains('created_at', $data);
}
}

0 comments on commit b89554a

Please sign in to comment.