예제 #1
0
파일: Xml.php 프로젝트: robtuley/knotwerk
 /**
  * Get XML representation.
  *
  * @return string  XML string
  */
 function asXml()
 {
     return $this->sxe->asXML();
 }
예제 #2
0
파일: Xml.php 프로젝트: robtuley/knotwerk
 function testCanGetNameOfRootObject()
 {
     $xml = new T_Xml('<root>data</root>');
     $expect = new T_Xml_Element('<root>data</root>');
     $this->assertSame($xml->getName(), $expect->getName());
 }