php-src/ext/date/tests/date_interval_format.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

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