svn: /php/php-src/branches/PHP_5_3/ext/date/tests/ DateInterval_format_a.phpt
| From: | Ferenc Kovacs | Date: | Mon, 16 May 2011 20:07:55 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_3/ext/date/tests/ DateInterval_format_a.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-64947@lists.php.net to get a copy of this message | ||
tyrael Mon, 16 May 2011 20:07:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311107
Log:
fix the test via setting the timezone to UTC as suggested by Alexey Shein, and adding an SKIPIF as
this test was originaly intended for windows only, maybe we could drop this, as we don't
support VC6 anymore
Changed paths:
U php/php-src/branches/PHP_5_3/ext/date/tests/DateInterval_format_a.phpt
Modified: php/php-src/branches/PHP_5_3/ext/date/tests/DateInterval_format_a.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/tests/DateInterval_format_a.phpt 2011-05-16 19:51:39 UTC
(rev 311106)
+++ php/php-src/branches/PHP_5_3/ext/date/tests/DateInterval_format_a.phpt 2011-05-16 20:07:55 UTC
(rev 311107)
@@ -3,8 +3,13 @@
--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--