Skip to content

Commit

Permalink
add currUser test
Browse files Browse the repository at this point in the history
  • Loading branch information
clsung committed May 4, 2012
1 parent 2aba7bd commit 60daacd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions testPlurk.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ public function testValidConsumerKey()
$this->assertEquals(0, $plurk->errno());
}

/**
* @depends testValidConsumerKey
*/
public function testcurrUser()
{
$plurk = new PlurkAPI($this->consumer_key, $this->consumer_secret,
$this->oauth_token, $this->oauth_token_secret
);
$json = $plurk->callAPI('/APP/Users/currUser');
$this->assertNotNull($json);
$this->assertEquals(0, $plurk->errno());
}

/**
* @depends testValidConsumerKey
*/
Expand Down

0 comments on commit 60daacd

Please sign in to comment.