]> granicus.if.org Git - php/commitdiff
set the timezone to UTC as suggested by Alexey Shein, and adding an SKIPIF as this...
authorFerenc Kovacs <tyrael@php.net>
Mon, 16 May 2011 23:35:23 +0000 (23:35 +0000)
committerFerenc Kovacs <tyrael@php.net>
Mon, 16 May 2011 23:35:23 +0000 (23:35 +0000)
ext/date/tests/DateInterval_format_a.phpt

index f82a2f6f6deebe0e1f75038879a7bf9daa685150..d095db56b36bb28148430f55a258a2b859a49bb5 100644 (file)
@@ -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--