summaryrefslogtreecommitdiff
path: root/ext/date/tests/DateTime_diff-massive.phpt
blob: 12a7d0fb2dc8f419c6bf1075a015ec175dbb1ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
DateTime::diff() -- massive
--CREDITS--
Daniel Convissor <danielc@php.net>
--FILE--
<?php

require 'examine_diff.inc';
define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_DIFF);
require 'DateTime_data-massive.inc';

?>
--EXPECTF--
test_massive_positive: DIFF: 333333-01-01 16:18:02 %s - -333333-01-01 16:18:02 %s = **P+666666Y0M0DT0H%s**
test_massive_negative: DIFF: -333333-01-01 16:18:02 %s - 333333-01-01 16:18:02 %s = **P-666666Y0M0DT0H%s**