DateTime_days-dates.phpt 1.0 KB

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. DateTime::diff() days -- dates
  3. --CREDITS--
  4. Daniel Convissor <danielc@php.net>
  5. --FILE--
  6. <?php
  7. require 'examine_diff.inc';
  8. define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_DAYS);
  9. require 'DateTime_data-dates.inc';
  10. ?>
  11. --EXPECT--
  12. test__7: DAYS: **7**
  13. test_years_positive__7_by_0_day: DAYS: **2557**
  14. test_years_positive__7_by_1_day: DAYS: **2558**
  15. test_years_positive__6_shy_1_day: DAYS: **2556**
  16. test_years_positive__7_by_1_month: DAYS: **2585**
  17. test_years_positive__6_shy_1_month: DAYS: **2526**
  18. test_years_positive__7_by_1_month_split_newyear: DAYS: **2588**
  19. test_years_positive__6_shy_1_month_split_newyear: DAYS: **2526**
  20. test_negative__7: DAYS: **7**
  21. test_years_negative__7_by_0_day: DAYS: **2557**
  22. test_years_negative__7_by_1_day: DAYS: **2558**
  23. test_years_negative__6_shy_1_day: DAYS: **2556**
  24. test_years_negative__7_by_1_month: DAYS: **2585**
  25. test_years_negative__6_shy_1_month: DAYS: **2526**
  26. test_years_negative__7_by_1_month_split_newyear: DAYS: **2588**
  27. test_years_negative__6_shy_1_month_split_newyear: DAYS: **2526**