Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjkerr committed Mar 12, 2015
1 parent c6fc6e2 commit 2ec75cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/ExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ public function testApiErrorHandling()
self::setTestApiKey();

try {
Person::create(array());
Person::create(array(
'name_first' => 'Jane',
));
// Always fail
$this->assertTrue(false);
} catch (Util\Exception $e) {
$expected = 'invalid_request_error';
var_dump($e);
$this->assertSame($expected, $e->type);
$this->assertTrue($e instanceof Util\Exception);
}
Expand Down

0 comments on commit 2ec75cc

Please sign in to comment.