summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authorFerenc Kovacs <tyrael@php.net>2011-05-16 23:35:23 +0000
committerFerenc Kovacs <tyrael@php.net>2011-05-16 23:35:23 +0000
commit66d5eb12a994cd999133ea3d7b02c977c1a4b0d1 (patch)
treec41fb3c29bbd15ccf923fd217fa42612cf244ef3 /ext/date
parentf551ed418949981b8d0df79bf50e299b51ab113d (diff)
downloadphp-git-66d5eb12a994cd999133ea3d7b02c977c1a4b0d1.tar.gz
set the timezone to UTC as suggested by Alexey Shein, and adding an SKIPIF as this test was originaly intended to be windows only
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/tests/DateInterval_format_a.phpt7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/date/tests/DateInterval_format_a.phpt b/ext/date/tests/DateInterval_format_a.phpt
index f82a2f6f6d..d095db56b3 100644
--- a/ext/date/tests/DateInterval_format_a.phpt
+++ b/ext/date/tests/DateInterval_format_a.phpt
@@ -3,8 +3,13 @@ DateInterval::format(), %a
--CREDITS--
Daniel Convissor <danielc@php.net>
# TestFest 2010 BKTK
+--INI--
+date.timezone=UTC
--SKIPIF--
-<?php if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist"); ?>
+<?php
+if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist");
+if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
+?>
--XFAIL--
Windows VC6 libs' floor()/ceil() choke on floats
--FILE--