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

From: Date: Wed, 10 Jun 2015 07:30:01 +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-87152@lists.php.net to get a copy of this message
Commit: a6d7dd302c38cff367d1ffe7d438b715e9fe1a74 Author: Stanislav Malyshev <stas@php.net> Tue, 9 Jun 2015 17:11:33 -0700 Committer: Ferenc Kovacs <tyrael@php.net> Wed, 10 Jun 2015 09:30:01 +0200 Parents: d2ac264ffea5ca2e85640b6736e0c7cd4ee9a4a9 Branches: PHP-5.6.10 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a6d7dd302c38cff367d1ffe7d438b715e9fe1a74 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 (#87152) next »