EntryTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFullMethodsDataEntry() 0 11 1
1
<?php
2
3
namespace CarlosIO\Geckoboard\Tests\Data;
4
5
use CarlosIO\Geckoboard\Data\Entry;
6
7
class EntryTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testFullMethodsDataEntry()
10
    {
11
        $entry = new Entry();
12
        $entry
13
            ->setValue(100)
14
            ->setPrefix('EUR')
15
            ->setText('Step 1');
16
17
        $json = json_encode($entry->toArray());
18
        $this->assertEquals('{"text":"Step 1","value":100,"prefix":"EUR"}', $json);
19
    }
20
}
21