Completed
Pull Request — master (#255)
by
unknown
02:23
created

BalancesTest::testShouldGetBalances()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 14
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Moip\Tests\Resource;
4
5
use Moip\Tests\TestCase;
6
7
class BalancesTest extends TestCase
8
{
9
    public function testShouldGetBalances()
10
    {
11
        $this->mockHttpSession($this->body_balances);
12
13
        $balances = $this->moip->balances()->get();
14
        $current = $balances->getCurrent();
15
        $future = $balances->getFuture();
16
        $unavailable = $balances->getUnavailable();
17
18
        $this->assertNotEmpty($current);
19
        $this->assertNotEmpty($future);
20
        $this->assertNotEmpty($unavailable);
21
        $this->assertEquals(44592168, $current[0]->amount);
22
    }
23
}
24