php-src/ext/date/tests/DateTime_sub-massive.phpt

16 lines
453 B
PHP

--TEST--
DateTime::sub() -- massive
--CREDITS--
Daniel Convissor <danielc@php.net>
--FILE--
<?php
require 'examine_diff.inc';
define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_SUB);
require 'DateTime_data-massive.inc';
?>
--EXPECT--
test_massive_positive: SUB: 333333-01-01 16:18:02 EST - P+666666Y0M0DT0H0M0S = **-333333-01-01 16:18:02 EST**
test_massive_negative: SUB: -333333-01-01 16:18:02 EST - P-666666Y0M0DT0H0M0S = **333333-01-01 16:18:02 EST**