--TEST-- SimpleXMLElement: Test to ensure that the required attribute name correctly is giving a warning --CREDITS-- Havard Eide #PHPTestFest2009 Norway 2009-06-09 \o/ --SKIPIF-- --FILE-- testfest"); $a->addAttribute( "", "" ); echo $a->asXML(); ?> --EXPECTF-- Warning: SimpleXMLElement::addAttribute(): Attribute name is required in %s on line %d testfest