php-src/ext/dom/tests/DOMComment_insertData_error2.phpt
Steph Fox 4be7f4aecd - killed off UEXPECT
- com_dotnet gets a .cvsignore
- Ulf will take care of mysql extensions, rest complete
2008-05-27 18:16:04 +00:00

25 lines
519 B
PHP

--TEST--
Test inserting data into a DOMComment basic test
--CREDITS--
Andrew Larssen <al@larssen.org>
London TestFest 2008
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
//offset to large
$dom = new DomDocument();
$comment = $dom->createComment('test-comment');
try {
$comment->insertData(999,'-inserted');
} catch (DOMException $e ) {
if ($e->getMessage() == 'Index Size Error'){
echo "Throws DOMException for offset too large\n";
}
}
?>
--EXPECT--
Throws DOMException for offset too large