Ejemplo n.º 1
0
 /**
  * Tests getting a child
  * @covers \Copycat\Structure\SimpleXmlElement::get()
  */
 public function testGet()
 {
     $element = new SimpleXmlElement('<Test><bar></bar></Test>');
     $this->assertInstanceOf('\\Copycat\\Structure\\SimpleXmlElement', $element->get('foo'));
     $this->assertInstanceOf('\\Copycat\\Structure\\SimpleXmlElement', $element->get('bar'));
 }