getNormalizedValueTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 9 1
1
<?php
2
3
namespace Tests\Unit\functions;
4
5
use Tests\TestCase;
6
7
use function sweetrdf\InMemoryStoreSqlite\getNormalizedValue;
8
9
class getNormalizedValueTest extends TestCase
10
{
11
    /**
12
     * Tests to behavior, if a datetime string was given.
13
     */
14
    public function test()
15
    {
16
        // case with +hourse
17
        $string = '2009-05-28T18:03:38+09:00';
18
        $this->assertEquals('2009-05-28T09:03:38Z', getNormalizedValue($string));
19
20
        // GMT case
21
        $string = '2009-05-28T18:03:38GMT';
22
        $this->assertEquals('2009-05-28T18:03:38Z', getNormalizedValue($string));
23
    }
24
}
25