--TEST-- Test replacing data into a DOMComment basic test --CREDITS-- Andrew Larssen London TestFest 2008 --SKIPIF-- --FILE-- createComment('test-comment'); try { $comment->replaceData(-1,4,'-inserted'); } catch (DOMException $e ) { if ($e->getMessage() == 'Index Size Error'){ echo "Throws DOMException for -ve offset\n"; } } ?> --EXPECT-- Throws DOMException for -ve offset