/** * tests getMaxDepth method * * @return null */ public function testGetMaxDepth() { $this->assertEquals(3, $this->_oSubj->getMaxDepth()); $this->assertEquals(2, $this->_oSubj->getMdSubvariantByName("Red")->getMaxDepth()); $this->assertEquals(1, $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getMaxDepth()); $this->assertEquals(0, $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getMdSubvariantByName("Silk")->getMaxDepth()); $this->assertEquals(0, $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getMdSubvariantByName("Wool")->getMaxDepth()); }