Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  added a test for date_interval_format function
  Merge branch 'pull-request/2198'
This commit is contained in:
Joe Watkins 2016-11-12 09:59:24 +00:00
commit d1910f66e5

View File

@ -0,0 +1,21 @@
--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');
?>
--EXPECTF--
4 days
32 days