summaryrefslogtreecommitdiff
path: root/ext/date/tests/DateTime_days-spring-type3-type2.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_days-spring-type3-type2.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_days-spring-type3-type2.phpt')
-rw-r--r--ext/date/tests/DateTime_days-spring-type3-type2.phpt29
1 files changed, 29 insertions, 0 deletions
diff --git a/ext/date/tests/DateTime_days-spring-type3-type2.phpt b/ext/date/tests/DateTime_days-spring-type3-type2.phpt
new file mode 100644
index 0000000000..782dee567d
--- /dev/null
+++ b/ext/date/tests/DateTime_days-spring-type3-type2.phpt
@@ -0,0 +1,29 @@
+--TEST--
+DateTime::diff() days -- spring type3 type2
+--CREDITS--
+Daniel Convissor <danielc@php.net>
+--FILE--
+<?php
+
+require 'examine_diff.inc';
+define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_DAYS);
+require 'DateTime_data-spring-type3-type2.inc';
+
+?>
+--EXPECT--
+test_time_spring_type3_prev_type2_prev: DAYS: **30**
+test_time_spring_type3_prev_type2_st: DAYS: **0**
+test_time_spring_type3_prev_type2_dt: DAYS: **0**
+test_time_spring_type3_prev_type2_post: DAYS: **2**
+test_time_spring_type3_st_type2_prev: DAYS: **0**
+test_time_spring_type3_st_type2_st: DAYS: **0**
+test_time_spring_type3_st_type2_dt: DAYS: **0**
+test_time_spring_type3_st_type2_post: DAYS: **1**
+test_time_spring_type3_dt_type2_prev: DAYS: **0**
+test_time_spring_type3_dt_type2_st: DAYS: **0**
+test_time_spring_type3_dt_type2_dt: DAYS: **0**
+test_time_spring_type3_dt_type2_post: DAYS: **1**
+test_time_spring_type3_post_type2_prev: DAYS: **2**
+test_time_spring_type3_post_type2_st: DAYS: **1**
+test_time_spring_type3_post_type2_dt: DAYS: **1**
+test_time_spring_type3_post_type2_post: DAYS: **0**