]> granicus.if.org Git - php/commitdiff
- Fix up tests, remove windows specific test.
authorDerick Rethans <derick@php.net>
Thu, 16 Jun 2005 18:13:40 +0000 (18:13 +0000)
committerDerick Rethans <derick@php.net>
Thu, 16 Jun 2005 18:13:40 +0000 (18:13 +0000)
ext/date/tests/002-win32.phpt [deleted file]
ext/date/tests/002.phpt
ext/date/tests/bug13142.phpt
ext/date/tests/bug17988.phpt

diff --git a/ext/date/tests/002-win32.phpt b/ext/date/tests/002-win32.phpt
deleted file mode 100644 (file)
index 1d7ef57..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
---TEST--
-strtotime() function
---SKIPIF--
-<?php
-if (substr(PHP_OS, 0, 3) != 'WIN') {
-    print 'skip test for win32 only';
-}
-if (!@putenv("TZ=GST-1GDT") || getenv("TZ") != 'GST-1GDT') {
-    die("skip unable to change TZ enviroment variable\n");
-}
-?>
---FILE--
-<?php
-    $dates = array (
-        "1999-10-13",
-        "Oct 13  1999",
-        "2000-01-19",
-        "Jan 19  2000",
-        "2001-12-21",
-        "Dec 21  2001",
-        "2001-12-21 12:16",
-        "Dec 21 2001 12:16",
-        "2001-10-22 21:19:58",
-        "2001-10-22 21:19:58-02",
-        "2001-10-22 21:19:58-0213",
-        "2001-10-22 21:19:58+02",
-        "2001-10-22 21:19:58+0213"
-    );
-
-    putenv ("TZ=GMT");
-    foreach ($dates as $date) {
-        echo date("Y-m-d H:i:s\n", strtotime ($date));
-    }
-
-    putenv ("TZ=GST-1GDT");
-    foreach ($dates as $date) {
-        echo date("Y-m-d H:i:s\n", strtotime ($date));
-    }
-?>
---EXPECT--
-1999-10-13 00:00:00
-1999-10-13 00:00:00
-2000-01-19 00:00:00
-2000-01-19 00:00:00
-2001-12-21 00:00:00
-2001-12-21 00:00:00
-2001-12-21 12:16:00
-2001-12-21 12:16:00
-2001-10-22 21:19:58
-2001-10-22 23:19:58
-2001-10-22 23:32:58
-2001-10-22 19:19:58
-2001-10-22 19:06:58
-1999-10-13 00:00:00
-1999-10-13 00:00:00
-2000-01-19 00:00:00
-2000-01-19 00:00:00
-2001-12-21 00:00:00
-2001-12-21 00:00:00
-2001-12-21 12:16:00
-2001-12-21 12:16:00
-2001-10-22 21:19:58
-2001-10-23 01:19:58
-2001-10-23 01:32:58
-2001-10-22 21:19:58
-2001-10-22 21:06:58
index 787b89c6eb7f5552dd08e7461abb035264b9d404..7384b7424469b00d5a4658db1b2090f1cc889061 100644 (file)
@@ -2,9 +2,6 @@
 strtotime() function
 --SKIPIF--
 <?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
-    die('skip Windows does not support dates prior to midnight (00:00:00), January 1, 1970');
-}
 if (!@putenv("TZ=EST5") || getenv("TZ") != 'EST5') {
        die("skip unable to change TZ enviroment variable\n");
 }
index 25bf11589f18d2212f68de45aff117f5356da95d..5e54263c5493290c90bb6b51fadf07ae24a67242 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #13142 strtotime handling of "M d H:i:s Y" format
+Bug #13142 (strtotime handling of "M d H:i:s Y" format)
 --SKIPIF--
 <?php
 if (!@putenv("TZ=US/Eastern") || getenv("TZ") != 'US/Eastern') {
index 5fbc3c845fb457501c52d52cd8ae98ed94fb07d6..259fa7dc2e3bdc6635204c269ff73a10d1c91ee7 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #17988 strtotime handling of postgresql timestamps
+Bug #17988 (strtotime handling of postgresql timestamps)
 --FILE--
 <?php
 putenv("TZ=GMT");