public function testNumberOfDescendant() { $nestedset = new NestedSet_Model(); $db = Zend_Db::factory('Pdo_Sqlite', array('dbname' => 'tests/test.db')); $nestedset->setDb($db); $nestedset->setTableName('nested'); $nestedset->add('foo'); $nestedset->add('bar', 1); $this->assertEquals($nestedset->numberOfDescendant(1), 1); }