Annotation of embedaddon/php/ext/dom/tests/DOMComment_construct_error_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: DOMComment::__construct() with more arguments than acceptable.
! 3: --CREDITS--
! 4: Eric Lee Stewart <ericleestewart@gmail.com>
! 5: # TestFest Atlanta 2009-05-24
! 6: --SKIPIF--
! 7: <?php require_once('skipif.inc'); ?>
! 8: --FILE--
! 9: <?php
! 10: $comment = new DOMComment("comment1", "comment2");
! 11: ?>
! 12: --EXPECTF--
! 13: Fatal error: Uncaught exception 'DOMException' with message 'DOMComment::__construct() expects at most 1 parameter, 2 given' in %s:%d
! 14: Stack trace:
! 15: #0 %s(%d): DOMComment->__construct('comment1', 'comment2')
! 16: #1 {main}
! 17: thrown in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>