DegTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_can_add_new_element() 0 11 1
1
<?php
2
3
namespace Tests\Fhp;
4
5
use Fhp\Deg;
6
7
class DegTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function test_can_add_new_element()
10
    {
11
        $deg = new Deg();
12
        $deg->addDataElement('foobar');
13
14
        $this->assertEquals('foobar', $deg->toString());
15
16
        $deg->addDataElement('baz');
17
        $this->assertEquals('foobar:baz', $deg->toString());
18
        $this->assertEquals('foobar:baz', (string) $deg);
19
    }
20
}
21