Annotation of embedaddon/php/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test DOMDocument::loadHTMLFile when an empty string is passed
        !             3: --DESCRIPTION--
        !             4: Verifies that an error message is showed if an empty string is passed as argument
        !             5: --CREDITS--
        !             6: Antonio Diaz Ruiz <dejalatele@gmail.com>
        !             7: --INI--
        !             8: assert.bail=true
        !             9: --SKIPIF--
        !            10: <?php include('skipif.inc'); ?>
        !            11: --FILE--
        !            12: <?php
        !            13: $doc = new DOMDocument();
        !            14: $result = $doc->loadHTMLFile("");
        !            15: assert('$result === false');
        !            16: ?>
        !            17: --EXPECTF--
        !            18: %r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Empty string supplied as input %s

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>