/** * Get depth */ public function testDepth() { $iVal = rand(1, 1000); $oListItem = new ListItem('text', $iVal); $this->assertEquals($iVal, $oListItem->getDepth()); }
/** * Get depth */ public function testDepth() { $iVal = rand(1, 1000); $oListItem = new ListItem(htmlspecialchars('text', ENT_COMPAT, 'UTF-8'), $iVal); $this->assertEquals($iVal, $oListItem->getDepth()); }