SEPAAccountTest::test_getter_and_setter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 16
rs 9.7333
c 1
b 0
f 0
cc 1
nc 1
nop 0
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