1<?php 2 3/* 4 * Note: test names match method names in a set of PHPUnit tests 5 * in a userland package. Please be so kind as to leave them. 6 */ 7 8date_default_timezone_set('America/New_York'); 9 10 11/* 12 * Massive dates 13 */ 14echo "test_massive_positive: "; 15$end = new DateTime; 16$end->setDate(333333, 1, 1); 17$end->setTime(16, 18, 02); 18 19$start = new DateTime; 20$start->setDate(-333333, 1, 1); 21$start->setTime(16, 18, 02); 22 23examine_diff($end, $start, 'P+666666Y0M0DT0H0M0S', 243494757); 24 25echo "test_massive_negative: "; 26$end = new DateTime; 27$end->setDate(-333333, 1, 1); 28$end->setTime(16, 18, 02); 29 30$start = new DateTime; 31$start->setDate(333333, 1, 1); 32$start->setTime(16, 18, 02); 33 34examine_diff($end, $start, 'P-666666Y0M0DT0H0M0S', 243494757); 35