/** * leaveComposite * * @return boolean */ public function leaveComposite(KVDthes_Term $node) { if ($node->hasBTRelations()) { $this->depth--; $this->result .= $this->pad() . "</ul>\n"; $this->depth--; } $this->result .= $this->pad() . "</li>\n"; return true; }
public function testHasBTRelations() { $this->object->setLoadState(KVDthes_Term::LS_REL); $this->assertFalse($this->object->hasBTRelations()); $this->assertEquals($this->object->hasBTRelations(), $this->object->hasBT()); }