Commit f7dd0356 by Epi Nett

Better test

parent ca5106bc
Pipeline #55 passed with stage
in 1 minute 37 seconds
......@@ -15,7 +15,7 @@ class BalanceTest extends TestCase {
public function testInstance()
{
$oBalance = new Balance('api_key', 'secret_key');
$this->assertInstanceOf('\\CAMOO\\Balance\\Balance',$oBalance);
$this->assertInstanceOf('\\CAMOO\\Balance\\Balance', $oBalance);
}
/**
......@@ -24,7 +24,7 @@ class BalanceTest extends TestCase {
*/
public function testCurrent() {
$oBalance = new Balance('api_key', 'secret_key');
$this->assertInstanceOf('stdClass',$oBalance->current());
$this->assertInstanceOf('stdClass', $oBalance->current());
}
......@@ -35,19 +35,19 @@ class BalanceTest extends TestCase {
*/
public function testAddSuccess($hData) {
$oBalance = new Balance('api_key', 'secret_key');
$this->assertInstanceOf('stdClass',$oBalance->add($hData));
$this->assertInstanceOf('stdClass', $oBalance->add($hData));
}
public function addProviderSuccess()
{
return [
[ ['phonenumber' => 671234567,'amount' => '1000']],
[ ['phonenumber' => 650234567,'amount' => 10000 ]],
[ ['phonenumber' => 651234567,'amount' => 1000 ]],
[ ['phonenumber' => 652234567,'amount' => '1500']],
[ ['phonenumber' => 653234567,'amount' => '3000']],
[ ['phonenumber' => 654234567,'amount' => '500']],
[['phonenumber' => 671234567,'amount' => '1000']],
[['phonenumber' => 650234567,'amount' => 10000 ]],
[['phonenumber' => 651234567,'amount' => 1000 ]],
[['phonenumber' => 652234567,'amount' => '1500']],
[['phonenumber' => 653234567,'amount' => '3000']],
[['phonenumber' => 654234567,'amount' => '500']],
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment