cvs: pear /Date/tests/bugs bug-8518.phpt

[email protected] ("Firman Wandayandi") Tue, 06 May 2008 15:51:30 -0000
Newsgroups php.pear.cvs
Message-ID <cvsfirman1210089090@cvsserver>
firman		Tue May  6 15:51:30 2008 UTC

  Modified files:              
    /pear/Date/tests/bugs	bug-8518.phpt 
  Log:
  Reformat the output and the actual result objective, since test went failed using the object dump to diff.
  
http://cvs.php.net/viewvc.cgi/pear/Date/tests/bugs/bug-8518.phpt?r1=1.3&r2=1.4&diff_format=u
Index: pear/Date/tests/bugs/bug-8518.phpt
diff -u pear/Date/tests/bugs/bug-8518.phpt:1.3 pear/Date/tests/bugs/bug-8518.phpt:1.4
--- pear/Date/tests/bugs/bug-8518.phpt:1.3	Mon Nov  5 21:23:15 2007
+++ pear/Date/tests/bugs/bug-8518.phpt	Tue May  6 15:51:29 2008
@@ -5,6 +5,7 @@
 /**
  * Test for: Date
  * Parts tested: Date::copy()
+ * $Id: bug-8518.phpt,v 1.4 2008/05/06 15:51:29 firman Exp $
  */
 
 require_once 'Date.php';
@@ -14,35 +15,7 @@
 
 $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
-)
\ No newline at end of file
+2006-11-08 10:19:25.994200+00:00