mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
22 lines
401 B
PHP
22 lines
401 B
PHP
--TEST--
|
|
Test date_interval_format() function : basic functionality
|
|
--CREDITS--
|
|
Jean Carlo Machado <contato@jeancarlomachado.com.br>
|
|
--INI--
|
|
date.timezone=UTC
|
|
--FILE--
|
|
<?php
|
|
|
|
$interval = new DateInterval('P2Y4DT6H8M');
|
|
echo date_interval_format($interval, '%d days');
|
|
|
|
echo PHP_EOL;
|
|
|
|
$interval = new DateInterval('P32D');
|
|
echo date_interval_format($interval, '%d days');
|
|
|
|
?>
|
|
--EXPECT--
|
|
4 days
|
|
32 days
|