]> granicus.if.org Git - php/commitdiff
- Fixed tests
authorFelipe Pena <felipe@php.net>
Tue, 6 Jul 2010 00:25:52 +0000 (00:25 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 6 Jul 2010 00:25:52 +0000 (00:25 +0000)
ext/date/tests/DateTimeZone_listAbbreviations_basic1.phpt
ext/date/tests/bug51393.phpt
ext/date/tests/date_diff.phpt
ext/standard/tests/directory/DirectoryClass_basic_001.phpt

index bd6344fa240b9695373f0da873503d49e2ef562d..126c4b8327bc41c9e74a79e63684c68314dffaea 100644 (file)
@@ -26,7 +26,7 @@ var_dump( $abbr["acst"] );
 --EXPECT--
 *** Testing DateTimeZone::listAbbreviations() : basic functionality ***
 string(5) "array"
-int(338)
+int(399)
 
 -- Format a sample entry --
 array(4) {
index c4c4d61a1e745ff50ae70953a536508adbcf3a16..e3f0983ae275173b02dde2529412b1edc2ab1005 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #51393 (DateTime::createFromFormat() fails if format string contains timezone)
+--INI--
+date.timezone=UTC
 --FILE--
 <?php
 $dt = DateTime::createFromFormat('O', '+0800');
index 967e9136ceb1b90f3272a990f7d479883d68cbf7..31783a884dea7c074c753ccc9f5aa3ea2fa25009 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Extensive test for date_diff().
+--INI--
+date.timezone=UTC
 --FILE--
 <?php
 $ok = 0;
index e8ffd5752ae54700a0d7a97390fc67f09d4b9930..0accb2c85f1fbe92aa84c58c66ad7a818479bc42 100644 (file)
@@ -35,13 +35,25 @@ Class [ <internal%s> class Directory ] {
   }
 
   - Methods [3] {
-    Method [ <internal%s> public method close ] {
+    Method [ <internal:standard> public method close ] {
+
+      - Parameters [1] {
+        Parameter #0 [ <optional> $dir_handle ]
+      }
     }
 
-    Method [ <internal%s> public method rewind ] {
+    Method [ <internal:standard> public method rewind ] {
+
+      - Parameters [1] {
+        Parameter #0 [ <optional> $dir_handle ]
+      }
     }
 
-    Method [ <internal%s> public method read ] {
+    Method [ <internal:standard> public method read ] {
+
+      - Parameters [1] {
+        Parameter #0 [ <optional> $dir_handle ]
+      }
     }
   }
 }
@@ -50,4 +62,4 @@ object(Directory)#%d (0) {
 }
 
 Warning: Directory::read(): Unable to find my handle property in %s on line 15
-bool(false)
\ No newline at end of file
+bool(false)