mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
4be7f4aecd
- com_dotnet gets a .cvsignore - Ulf will take care of mysql extensions, rest complete
24 lines
437 B
PHP
24 lines
437 B
PHP
--TEST--
|
|
DomDocument::createAttribute() - basic test for DomDocument::createAttribute()
|
|
--CREDITS--
|
|
Muhammad Khalid Adnan
|
|
# TestFest 2008
|
|
--FILE--
|
|
<?php
|
|
|
|
$doc = new DOMDocument;
|
|
|
|
$node = $doc->createElement("para");
|
|
$newnode = $doc->appendChild($node);
|
|
|
|
// A pass case.
|
|
$test_attribute = $doc->createAttribute("hahaha");
|
|
$node->appendChild($test_attribute);
|
|
|
|
echo $doc->saveXML();
|
|
|
|
?>
|
|
--EXPECT--
|
|
<?xml version="1.0"?>
|
|
<para hahaha=""/>
|