php-src/ext/dom/tests/DOMAttr_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
362 B
PHP

--TEST--
DOMAttr __construct() with no arguments.
--CREDITS--
Josh Sweeney <jsweeney@alt-invest.net>
# TestFest Atlanta 2009-05-14
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
try {
$attr = new DOMAttr();
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
DOMAttr::__construct() expects at least 1 parameter, 0 given