server/src/tests/Libraries/UtilsTest.php
changeset 261 02e2396bcbbc
parent 152 dd6b3adde73b
--- a/server/src/tests/Libraries/UtilsTest.php	Sat Aug 06 21:27:53 2016 +0700
+++ b/server/src/tests/Libraries/UtilsTest.php	Sat Aug 06 21:29:33 2016 +0700
@@ -31,4 +31,10 @@
         $this->assertNull($ms, "duration must be null");
     }
 
+    public function testiso8601IntervalToMillisDoubleZero() {
+        $ms = Utils::iso8601IntervalToMillis("PT47M00S");
+        $this->assertEquals(2820000, $ms, "duration must be 2820000");
+    }
+
+
 }