]> 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/reflection/tests/ReflectionClass_getConstructor_basic.phpt
ext/reflection/tests/ReflectionMethod_constructor_basic.phpt
ext/reflection/tests/ReflectionObject_getConstructor_basic.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 f3881c56db54a4330281ff71a9b1815b94b65529..1f5ba432c3cf462a6416c43773b378de635f7650 100644 (file)
@@ -64,10 +64,7 @@ foreach ($classes as $class) {
                                 
 ?>
 --EXPECTF--
-
-Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line 26
-
-Strict Standards: %s for class NewAndOldCtor in %s on line 31
+Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line %d
 Constructor of NewCtor: __construct
 Constructor of ExtendsNewCtor: __construct
 Constructor of OldCtor: OldCtor
@@ -79,4 +76,4 @@ Constructor of C: C
 Constructor of D1: __construct
 Constructor of D2: C
 No constructor for X
-No constructor for Y
\ No newline at end of file
+No constructor for Y
index dcc6080b425e394b7de703cfe95354d3d7dcbf39..2a2f02ffe05718a05b507d6a1e7c40d3fda8b4dd 100644 (file)
@@ -86,8 +86,6 @@ var_dump($methodInfo->isConstructor());
 ?>
 --EXPECTF--
 Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line %d
-
-Strict Standards: %s for class NewAndOldCtor in %s on line %d
 New-style constructor:
 bool(true)
 
index a784f6d9e0d00b67555db4cef5accd0958104f70..5a0c36f9eec264fb0bbcc53122e4cbd3a2490f29 100644 (file)
@@ -64,10 +64,7 @@ foreach ($classes as $class) {
                                
 ?>
 --EXPECTF--
-
-Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line 26
-
-Strict Standards: %s for class NewAndOldCtor in %s on line 31
+Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line %d
 Constructor of NewCtor: __construct
 Constructor of ExtendsNewCtor: __construct
 Constructor of OldCtor: OldCtor
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)