コード例 #1
0
 /**
  * Get depth
  */
 public function testDepth()
 {
     $iVal = rand(1, 1000);
     $oListItem = new ListItem('text', $iVal);
     $this->assertEquals($iVal, $oListItem->getDepth());
 }
コード例 #2
0
ファイル: ListItemTest.php プロジェクト: doit05/relProject
 /**
  * Get depth
  */
 public function testDepth()
 {
     $iVal = rand(1, 1000);
     $oListItem = new ListItem(htmlspecialchars('text', ENT_COMPAT, 'UTF-8'), $iVal);
     $this->assertEquals($iVal, $oListItem->getDepth());
 }