--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"); try { $a->addAttribute( "", "" ); } catch (ValueError $exception) { echo $exception->getMessage() . "\n"; } echo $a->asXML(); ?> --EXPECT-- SimpleXMLElement::addAttribute(): Argument #1 ($qualifiedName) cannot be empty testfest