/** * Check if the current iterator element has children * * @return object FluentDOMCore */ public function hasChildren() { $item = $this->_owner->item($this->_position); return $item->hasChildNodes(); }
/** * @group CoreFunctions * @covers FluentDOMCore::item */ public function testItemExpectingNull() { $fd = new FluentDOMCore(); $this->assertNull($fd->item(0)); }