--TEST--
-DateInterval::format(), except %a
---DESCRIPTION--
-%a is covered in a separate test.
-Don't want an XFAIL here to cause confusion if a real bug comes up.
+DateInterval::format()
--CREDITS--
Daniel Convissor <danielc@php.net>
# TestFest 2010 BKTK
echo $interval->format('i=%i') . "\n";
echo $interval->format('s=%s') . "\n";
echo $interval->format('r=%r') . "\n";
+echo $interval->format('a=%a') . "\n";
echo "\n";
i=5
s=6
r=
+a=428
inverted R=-
inverted r=-
+++ /dev/null
---TEST--
-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");
-if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
-?>
---FILE--
-<?php
-
-$date1 = new DateTime('2000-01-01 00:00:00');
-$date2 = new DateTime('2001-03-04 04:05:06');
-
-$interval = $date1->diff($date2);
-
-echo $interval->format('a=%a') . "\n";
-
-?>
---EXPECT--
-a=428