public function testGetChildrenByTagnameReturnsCorrectNodelist() { $list = $this->node->getChildrenByTagName('node'); $this->assertInstanceOf('DOMNodeList', $list); $this->assertEquals(2, $list->length); }