diff options
| author | Daniel Convissor <danielc@php.net> | 2011-09-13 20:31:02 +0000 |
|---|---|---|
| committer | Daniel Convissor <danielc@php.net> | 2011-09-13 20:31:02 +0000 |
| commit | 7987fde4c1c93c82d4aed16cf902dd3516f072c2 (patch) | |
| tree | 4611dedb2593a2889ad9791653a3a3334c0641bf | |
| parent | e82139d2e00293eb8fc0f1d743a91dc4cf90f8b1 (diff) | |
| download | php-git-7987fde4c1c93c82d4aed16cf902dd3516f072c2.tar.gz | |
Separate test for %a is no longer needed.
| -rw-r--r-- | ext/date/tests/DateInterval_format.phpt | 7 | ||||
| -rw-r--r-- | ext/date/tests/DateInterval_format_a.phpt | 25 |
2 files changed, 3 insertions, 29 deletions
diff --git a/ext/date/tests/DateInterval_format.phpt b/ext/date/tests/DateInterval_format.phpt index c144f585ac..b2fdef49c3 100644 --- a/ext/date/tests/DateInterval_format.phpt +++ b/ext/date/tests/DateInterval_format.phpt @@ -1,8 +1,5 @@ --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 @@ -32,6 +29,7 @@ echo $interval->format('h=%h') . "\n"; 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"; @@ -63,6 +61,7 @@ h=4 i=5 s=6 r= +a=428 inverted R=- inverted r=- diff --git a/ext/date/tests/DateInterval_format_a.phpt b/ext/date/tests/DateInterval_format_a.phpt deleted file mode 100644 index b6766448e1..0000000000 --- a/ext/date/tests/DateInterval_format_a.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---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 |
