server/src/tests/Libraries/UtilsTest.php
changeset 261 02e2396bcbbc
parent 152 dd6b3adde73b
equal deleted inserted replaced
260:64caee7ce38d 261:02e2396bcbbc
    29     public function testiso8601IntervalToMillisNull() {
    29     public function testiso8601IntervalToMillisNull() {
    30         $ms = Utils::iso8601IntervalToMillis(null);
    30         $ms = Utils::iso8601IntervalToMillis(null);
    31         $this->assertNull($ms, "duration must be null");
    31         $this->assertNull($ms, "duration must be null");
    32     }
    32     }
    33 
    33 
       
    34     public function testiso8601IntervalToMillisDoubleZero() {
       
    35         $ms = Utils::iso8601IntervalToMillis("PT47M00S");
       
    36         $this->assertEquals(2820000, $ms, "duration must be 2820000");
       
    37     }
       
    38 
       
    39 
    34 }
    40 }