mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
- Fixed tests
This commit is contained in:
parent
d22dff0903
commit
ce72f33674
@ -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) {
|
||||
|
@ -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');
|
||||
|
@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Extensive test for date_diff().
|
||||
--INI--
|
||||
date.timezone=UTC
|
||||
--FILE--
|
||||
<?php
|
||||
$ok = 0;
|
||||
|
@ -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 constructor for Y
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
bool(false)
|
||||
|
Loading…
Reference in New Issue
Block a user