コード例 #1
0
ファイル: Iterator.php プロジェクト: noels/FluentDOM
 /**
  * Check if the current iterator element has children
  *
  * @return object FluentDOMCore
  */
 public function hasChildren()
 {
     $item = $this->_owner->item($this->_position);
     return $item->hasChildNodes();
 }
コード例 #2
0
ファイル: CoreTest.php プロジェクト: noels/FluentDOM
 /**
  * @group CoreFunctions
  * @covers FluentDOMCore::item
  */
 public function testItemExpectingNull()
 {
     $fd = new FluentDOMCore();
     $this->assertNull($fd->item(0));
 }