示例#1
0
 public function testTextNodes()
 {
     $root = new SimpleDOM('<root>Some <b>bold</b> text</root>');
     $expected_return = array('Some ', new SimpleDOM('<b>bold</b>'), ' text');
     $return = $root->childNodes();
     $this->assertEquals($expected_return, $return);
 }