Change $e to $err
This commit is contained in:
parent
5d04cec73f
commit
80c8c783ae
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user