php-src/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

17 lines
417 B
PHP

--TEST--
DOMDocumentFragment::__construct() with too many errors.
--CREDITS--
Eric Lee Stewart <ericleestewart@gmail.com>
# TestFest Atlanta 2009-05-24
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
try {
$fragment = new DOMDocumentFragment("root");
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
DOMDocumentFragment::__construct() expects exactly 0 parameters, 1 given