Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Airtime
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
opensources
Airtime
Commits
f7dd0356
Commit
f7dd0356
authored
Mar 26, 2018
by
Epi Nett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better test
parent
ca5106bc
Pipeline
#55
passed with stage
in 1 minute 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
BalanceTest.php.dist
tests/TestCase/Balance/BalanceTest.php.dist
+9
-9
No files found.
tests/TestCase/Balance/BalanceTest.php
→
tests/TestCase/Balance/BalanceTest.php
.dist
View file @
f7dd0356
...
...
@@ -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']],
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment