Skip to content

Commit

Permalink
Compatibility with the latest release of PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
gi-lunaweb committed Apr 29, 2014
1 parent 8932623 commit f16f96e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function testWhoami()
{
global $user_id;
$res = $this->cloudkey->user->info(array('fields' => array('id', 'username')));
$this->assertType('object', $res);
$this->assertInternalType('object', $res);
$this->assertObjectHasAttribute('id', $res);
$this->assertObjectHasAttribute('username', $res);
$this->assertEquals($res->id, $user_id);
Expand Down Expand Up @@ -199,7 +199,7 @@ public function testInfo()
{
$media = $this->cloudkey->media->create();
$res = $this->cloudkey->media->info(array('id' => $media->id, 'fields' => array('id')));
$this->assertType('object', $res);
$this->assertInternalType('object', $res);
$this->assertObjectHasAttribute('id', $res);
$this->assertEquals(strlen($res->id), 24);
}
Expand Down

0 comments on commit f16f96e

Please sign in to comment.