Permalink
Browse files

Reformat the output and the actual result objective, since test went …

…failed using the object dump to diff.

git-svn-id: http://svn.php.net/repository/pear/packages/Date/trunk@259163 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 5fd2779 commit f14bed6d809c9e3a6bbb1a58eb96b1b62046126d Firman Wandayandi committed May 6, 2008
Showing with 3 additions and 30 deletions.
  1. +3 −30 tests/bugs/bug-8518.phpt
View
33 tests/bugs/bug-8518.phpt
@@ -5,6 +5,7 @@ Bug #8518: Date::copy() doest not copy the parts of a second.
/**
* Test for: Date
* Parts tested: Date::copy()
+ * $Id$
*/
require_once 'Date.php';
@@ -14,35 +15,7 @@ $date->setTZbyID("UTC");
$tmp = new Date;
$tmp->copy($date);
-print_r($tmp);
+echo $tmp->format('%Y-%m-%d %H:%M:%s%O'."\n");
?>
--EXPECT--
-Date Object
-(
- [year] => 2006
- [month] => 11
- [day] => 8
- [hour] => 10
- [minute] => 19
- [second] => 25
- [partsecond] => 0.9942
- [tz] => Date_TimeZone Object
- (
- [id] => UTC
- [offset] => 0
- [shortname] => UTC
- [dstshortname] =>
- [longname] => Coordinated Universal Time
- [dstlongname] =>
- [hasdst] =>
- [on_summertimeoffset] =>
- [on_summertimestartmonth] =>
- [os_summertimestartday] =>
- [on_summertimestarttime] =>
- [on_summertimeendmonth] =>
- [os_summertimeendday] =>
- [on_summertimeendtime] =>
- )
-
- [getWeekdayAbbrnameLength] => 3
-)
+2006-11-08 10:19:25.994200+00:00

0 comments on commit f14bed6

Please sign in to comment.