summaryrefslogtreecommitdiff
path: root/ext/date/tests/DateTime_add-massive.phpt
diff options
context:
space:
mode:
authorDaniel Convissor <danielc@php.net>2011-06-19 16:55:11 +0000
committerDaniel Convissor <danielc@php.net>2011-06-19 16:55:11 +0000
commitaed261683b4a906839ec4c311c8254466716d325 (patch)
tree9310021214b2b9bc159b4e93004879ba5c98f3e4 /ext/date/tests/DateTime_add-massive.phpt
parent8f68b4851474d1e69d85ad6c51a6fcf950f5a5de (diff)
downloadphp-git-aed261683b4a906839ec4c311c8254466716d325.tar.gz
Split DateTime diff/add/sub tests into separate files to make things easier to see, test and (one hopes) fix.
Diffstat (limited to 'ext/date/tests/DateTime_add-massive.phpt')
-rw-r--r--ext/date/tests/DateTime_add-massive.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/date/tests/DateTime_add-massive.phpt b/ext/date/tests/DateTime_add-massive.phpt
new file mode 100644
index 0000000000..ca5bef985e
--- /dev/null
+++ b/ext/date/tests/DateTime_add-massive.phpt
@@ -0,0 +1,15 @@
+--TEST--
+DateTime::add() -- massive
+--CREDITS--
+Daniel Convissor <danielc@php.net>
+--FILE--
+<?php
+
+require 'examine_diff.inc';
+define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_ADD);
+require 'DateTime_data-massive.inc';
+
+?>
+--EXPECT--
+test_massive_positive: ADD: -333333-01-01 16:18:02 EST + P+666666Y0M0DT0H0M0S = **333333-01-01 16:18:02 EST**
+test_massive_negative: ADD: 333333-01-01 16:18:02 EST + P-666666Y0M0DT0H0M0S = **-333333-01-01 16:18:02 EST**