Skip to content

Commit

Permalink
Merge pull request #89 from a10000005588/fix-personal-api-test
Browse files Browse the repository at this point in the history
Change $e to $err
  • Loading branch information
sc0Vu authored Jun 4, 2018
2 parents 5d04cec + 80c8c78 commit be7403a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/PersonalApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testNewAccount()

$personal->newAccount('123456', function ($err, $account) {
if ($err !== null) {
return $this->fail($e->getMessage());
return $this->fail($err->getMessage());
}
$this->assertTrue(is_string($account));
});
Expand All @@ -81,7 +81,7 @@ public function testUnlockAccount()
// create account
$personal->newAccount('123456', function ($err, $account) {
if ($err !== null) {
return $this->fail($e->getMessage());
return $this->fail($err->getMessage());
}
$this->newAccount = $account;
$this->assertTrue(is_string($account));
Expand All @@ -107,7 +107,7 @@ public function testUnlockAccountWithDuration()
// create account
$personal->newAccount('123456', function ($err, $account) {
if ($err !== null) {
return $this->fail($e->getMessage());
return $this->fail($err->getMessage());
}
$this->newAccount = $account;
$this->assertTrue(is_string($account));
Expand All @@ -133,7 +133,7 @@ public function testSendTransaction()
// create account
$personal->newAccount('123456', function ($err, $account) {
if ($err !== null) {
return $this->fail($e->getMessage());
return $this->fail($err->getMessage());
}
$this->newAccount = $account;
$this->assertTrue(is_string($account));
Expand Down

0 comments on commit be7403a

Please sign in to comment.