From: Stanislav Malyshev Date: Mon, 16 Dec 2019 18:59:36 +0000 (-0800) Subject: Fix tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90b13626292329c129b0ada404ff706b6e6ee0c0;p=php Fix tests --- diff --git a/ext/spl/tests/bug54291.phpt b/ext/spl/tests/bug54291.phpt index b4c1a2dc4b..9f3bd49912 100644 --- a/ext/spl/tests/bug54291.phpt +++ b/ext/spl/tests/bug54291.phpt @@ -5,7 +5,7 @@ Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0) $dir = new DirectoryIterator("\x00/abc"); $dir->isFile(); --EXPECTF-- -Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d +Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d Stack trace: #0 %s(%d): DirectoryIterator->__construct('\x00/abc') #1 {main} diff --git a/ext/spl/tests/bug78863.phpt b/ext/spl/tests/bug78863.phpt index dc88d98dee..c08c88a5d7 100644 --- a/ext/spl/tests/bug78863.phpt +++ b/ext/spl/tests/bug78863.phpt @@ -16,7 +16,7 @@ foreach ($it as $fileinfo) { } ?> --EXPECTF-- -Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d +Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d Stack trace: #0 %s(%d): DirectoryIterator->__construct('%s') #1 {main} diff --git a/ext/standard/tests/file/windows_links/bug78862.phpt b/ext/standard/tests/file/windows_links/bug78862.phpt index 33b4b49293..3bd787e705 100644 --- a/ext/standard/tests/file/windows_links/bug78862.phpt +++ b/ext/standard/tests/file/windows_links/bug78862.phpt @@ -7,9 +7,11 @@ var_dump(link(__DIR__ . "/bug78862.target\0more", __DIR__ . "/bug78862.link\0mor var_dump(file_exists(__DIR__ . '/bug78862.link')); ?> --EXPECTF-- -Warning: link() expects parameter 1 to be a valid path, string given in %s on line %d -NULL -bool(false) +Fatal error: Uncaught TypeError: link() expects parameter 1 to be a valid path, string given in %s:%d +Stack trace: +#0 %s(%d): link('%s', '%s') +#1 {main} + thrown in %s on line %d --CLEAN--