com php-src: fix test: ext/dom/tests/DOMDocument_loadHTMLfile _error2.phpt

From: Date: Wed, 10 Jun 2015 00:11:33 +0000
Subject: com php-src: fix test: ext/dom/tests/DOMDocument_loadHTMLfile _error2.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87140@lists.php.net to get a copy of this message
Commit: eee8b6c33fc968ef8c496db8fb54e8c9d9d5a8f9 Author: Stanislav Malyshev <stas@php.net> Tue, 9 Jun 2015 17:11:33 -0700 Parents: 539738c4384ba05a13cb17478e3af0f4d1450542 Branches: PHP-5.4 PHP-5.5 PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=eee8b6c33fc968ef8c496db8fb54e8c9d9d5a8f9 Log: fix test Changed paths: M ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt Diff: diff --git a/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt b/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt index 75004e2..e0d0923 100644 --- a/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt +++ b/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt @@ -15,9 +15,9 @@ $result = $doc->loadHTMLFile(""); assert('$result === false'); $doc = new DOMDocument(); $result = $doc->loadHTMLFile("text.html\0something"); -assert('$result === null'); +assert('$result === false'); ?> --EXPECTF-- %r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Empty string supplied as input %s -%r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile() expects parameter 1 to be a valid path, string given %s +%r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Invalid file source %s

« previous php.cvs (#87140) next »