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

BalancesTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 17
rs 10
c 1
b 0
f 0
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A testShouldGetBalances() 0 14 1
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