summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/ixr_library_date.test.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/_test/tests/inc/ixr_library_date.test.php b/_test/tests/inc/ixr_library_date.test.php
index fd5711212..0c81e6741 100644
--- a/_test/tests/inc/ixr_library_date.test.php
+++ b/_test/tests/inc/ixr_library_date.test.php
@@ -2,6 +2,9 @@
require_once DOKU_INC.'inc/IXR_Library.php';
+/**
+ * Class ixr_library_date_test
+ */
class ixr_library_date_test extends DokuWikiTest {
@@ -19,7 +22,7 @@ class ixr_library_date_test extends DokuWikiTest {
// with timezone
array('2010-08-17 09:23:14+0000', 1282036994),
array('2010-08-17 09:23:14+00:00', 1282036994),
- array('2010-08-17 09:23:14+03:00', 1282036994),
+ array('2010-08-17 12:23:14+03:00', 1282036994),
// no seconds
array('2010-08-17T09:23', 1282036980),
@@ -28,12 +31,12 @@ class ixr_library_date_test extends DokuWikiTest {
// no time
array('2010-08-17', 1282003200),
array(1282036980, 1282036980),
- //array('20100817', 1282003200), #this will NOT be parsed, but is assumed to be timestamp
+// array('20100817', 1282003200), #this will NOT be parsed, but is assumed to be timestamp
);
foreach($tests as $test){
$dt = new IXR_Date($test[0]);
- $this->assertEquals($dt->getTimeStamp(),$test[1]);
+ $this->assertEquals($test[1], $dt->getTimeStamp());
}
}