test_to_string()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Fhp\DataElementGroups;
4
5
class SecurityIdentificationDetailsTest extends \PHPUnit_Framework_TestCase
6
{
7
    public function test_to_string()
8
    {
9
        $e = new SecurityIdentificationDetails();
10
        $this->assertEquals('1::0', (string) $e);
11
        $this->assertEquals('1::0', $e->toString());
12
13
        $e = new SecurityIdentificationDetails(SecurityIdentificationDetails::PARTY_MS, 123);
14
        $this->assertEquals('1:1:123', (string) $e);
15
        $this->assertEquals('1:1:123', $e->toString());
16
    }
17
}
18