8 require_ok( 'includes/Sanitizer.php' );
9 require_ok( 'includes/Xml.php' );
16 Xml
::element( 'element', null, null ),
19 'Opening element with no attributes'
23 Xml
::element( 'element', null, '' ),
26 'Terminated empty element'
30 Xml
::element( 'element', null, 'hello <there> you & you' ),
32 '<element>hello <there> you & you</element>',
33 'Element with no attributes and content that needs escaping'
37 Xml
::element( 'element', array( 'key' => 'value', '<>' => '<>' ), null ),
39 '<element key="value" <>="<>">',
40 'Element attributes, keys are not escaped'
48 Xml
::openElement( 'element', array( 'k' => 'v' ) ),
51 'openElement() shortcut'
54 cmp_ok( Xml
::closeElement( 'element' ), '==', '</element>', 'closeElement() shortcut' );
56 /* vim: set filetype=php: */