SEPAAccountTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_getter_and_setter() 0 16 1
1
<?php
2
3
namespace Tests\Fhp\Model;
4
5
use Fhp\Model\SEPAAccount;
6
7
class SEPAAccountTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function test_getter_and_setter()
10
    {
11
        $obj = new SEPAAccount();
12
13
        $this->assertNull($obj->getAccountNumber());
14
        $this->assertNull($obj->getBic());
15
        $this->assertNull($obj->getBlz());
16
        $this->assertNull($obj->getIban());
17
        $this->assertNull($obj->getSubAccount());
18
19
        $this->assertSame('123456789', $obj->setAccountNumber('123456789')->getAccountNumber());
20
        $this->assertSame('123456789', $obj->setBic('123456789')->getBic());
21
        $this->assertSame('123456789', $obj->setIban('123456789')->getIban());
22
        $this->assertSame('123456789', $obj->setBlz('123456789')->getBlz());
23
        $this->assertSame('123456789', $obj->setSubAccount('123456789')->getSubAccount());
24
    }
25
}
26