Change $e to $err

This commit is contained in:
will 2018-06-04 11:10:31 +08:00
parent 5d04cec73f
commit 80c8c783ae

View File

@ -63,7 +63,7 @@ class PersonalApiTest extends TestCase
$personal->newAccount('123456', function ($err, $account) { $personal->newAccount('123456', function ($err, $account) {
if ($err !== null) { if ($err !== null) {
return $this->fail($e->getMessage()); return $this->fail($err->getMessage());
} }
$this->assertTrue(is_string($account)); $this->assertTrue(is_string($account));
}); });
@ -81,7 +81,7 @@ class PersonalApiTest extends TestCase
// create account // create account
$personal->newAccount('123456', function ($err, $account) { $personal->newAccount('123456', function ($err, $account) {
if ($err !== null) { if ($err !== null) {
return $this->fail($e->getMessage()); return $this->fail($err->getMessage());
} }
$this->newAccount = $account; $this->newAccount = $account;
$this->assertTrue(is_string($account)); $this->assertTrue(is_string($account));
@ -107,7 +107,7 @@ class PersonalApiTest extends TestCase
// create account // create account
$personal->newAccount('123456', function ($err, $account) { $personal->newAccount('123456', function ($err, $account) {
if ($err !== null) { if ($err !== null) {
return $this->fail($e->getMessage()); return $this->fail($err->getMessage());
} }
$this->newAccount = $account; $this->newAccount = $account;
$this->assertTrue(is_string($account)); $this->assertTrue(is_string($account));
@ -133,7 +133,7 @@ class PersonalApiTest extends TestCase
// create account // create account
$personal->newAccount('123456', function ($err, $account) { $personal->newAccount('123456', function ($err, $account) {
if ($err !== null) { if ($err !== null) {
return $this->fail($e->getMessage()); return $this->fail($err->getMessage());
} }
$this->newAccount = $account; $this->newAccount = $account;
$this->assertTrue(is_string($account)); $this->assertTrue(is_string($account));