- Fixed tests

This commit is contained in:
Felipe Pena 2010-07-06 00:25:52 +00:00
parent d22dff0903
commit ce72f33674
7 changed files with 24 additions and 16 deletions

View 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) {

View 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');

View File

@ -1,5 +1,7 @@
--TEST--
Extensive test for date_diff().
--INI--
date.timezone=UTC
--FILE--
<?php
$ok = 0;

View 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 constructor for Y

View 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)

View 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

View 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)
bool(false)