--CREDIT--
Jason Bouffard <jbouffard1@yahoo.com>
# TestFest Atlanta 2009-05-14
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$attr = new DOMAttr('category');
print $attr->value."\n";
?>
+===DONE===
--EXPECTF--
+===DONE===
+
\ No newline at end of file
--CREDITS--
Mike Sullivan <mike@regexia.com>
#TestFest 2008 (London)
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
echo "\n" . $document->saveXML();
?>
+===DONE===
--EXPECT--
CDATA Length (one append): 4
CDATA Length (two appends): 8
CDATA Content: data><&"
<?xml version="1.0"?>
-<root><cdata><![CDATA[data><&"]]></cdata></root>
\ No newline at end of file
+<root><cdata><![CDATA[data><&"]]></cdata></root>
+===DONE===
+
\ No newline at end of file
--CREDIT--
Jason Bouffard <jbouffard1@yahoo.com>
# TestFest Atlanta 2009-05-14
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$character_data = new DOMCharacterData();
print $character_data->length;
?>
+===DONE===
--EXPECTF--
-Warning: main(): Invalid State Error in %s
\ No newline at end of file
+Warning: main(): Invalid State Error in %s
+===DONE===
+
\ No newline at end of file
--CREDITS--
Mike Sullivan <mike@regexia.com>
#TestFest 2008 (London)
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
echo "\n" . $document->saveXML();
?>
+===DONE===
--EXPECT--
Text Length (one append): 4
Text Length (two appends): 8
Text Content: data><&"
<?xml version="1.0"?>
-<root><text>data><&"</text></root>
\ No newline at end of file
+<root><text>data><&"</text></root>
+===DONE===
+
\ No newline at end of file
--TEST--
Bug #42082 (NodeList length zero should be empty)
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$doc = new DOMDocument();
var_dump($doc->firstChild->nodeValue, empty($doc->firstChild->nodeValue), isset($doc->firstChild->nodeValue));
var_dump(empty($doc->nodeType), empty($doc->firstChild->nodeType))
?>
+===DONE===
--EXPECTF--
object(DOMNodeList)#%d (0) {
}
bool(true)
bool(true)
bool(false)
-bool(false)
\ No newline at end of file
+bool(false)
+===DONE===
+
\ No newline at end of file
--TEST--
Bug #43364 (recursive xincludes don't remove internal xml nodes properly)
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function loopElements($nodes)
var_dump($count);
?>
+===DONE===
--EXPECT--
int(13)
+===DONE===
+
DomDocument::CreateComment() - Incorrect Parameters
--CREDITS--
Clint Priest @ PhpTek09
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$x = new DomDocument();
$x->createComment();
?>
+===DONE===
--EXPECTF--
-Warning: DOMDocument::createComment() expects exactly 1 parameter, 0 given in %s
\ No newline at end of file
+Warning: DOMDocument::createComment() expects exactly 1 parameter, 0 given in %s
+===DONE===
+
\ No newline at end of file
DomDocument::CreateEntityReference() - Creates an entity reference with the appropriate name
--CREDITS--
Clint Priest @ PhpTek09
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$objDoc = new DomDocument();
$objRef = $objDoc->createEntityReference('Test');
- echo $objRef->nodeName;
+ echo $objRef->nodeName . "\n";
?>
+===DONE===
--EXPECT--
-Test
\ No newline at end of file
+Test
+===DONE===
+
\ No newline at end of file
DomDocument::CreateEntityReference() - Empty Arguments
--CREDITS--
Clint Priest @ PhpTek09
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$objDoc = new DomDocument();
$objRef = $objDoc->createEntityReference();
?>
+===DONE===
--EXPECTF--
-Warning: DOMDocument::createEntityReference() expects exactly 1 parameter, 0 given in %s
\ No newline at end of file
+Warning: DOMDocument::createEntityReference() expects exactly 1 parameter, 0 given in %s
+===DONE===
+
\ No newline at end of file