blob: e2c3b3c48f260e194d09c722e6c4e0a8f51d5633 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
DOMComment::__construct() with more arguments than acceptable.
--CREDITS--
Eric Lee Stewart <ericleestewart@gmail.com>
# TestFest Atlanta 2009-05-24
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
try {
$comment = new DOMComment("comment1", "comment2");
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
DOMComment::__construct() expects at most 1 argument, 2 given
|