mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
22 lines
432 B
PHP
22 lines
432 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
|
|
|
|
//correct offset
|
|
$dom = new DomDocument();
|
|
$comment = $dom->createComment('test-comment');
|
|
$comment->insertData(4,'-inserted');
|
|
$dom->appendChild($comment);
|
|
echo $dom->saveXML();
|
|
|
|
?>
|
|
--EXPECT--
|
|
<?xml version="1.0"?>
|
|
<!--test-inserted-comment-->
|