public function testAddNestedSetChildren() { $t0 = new Table9(); $t1 = new Table9(); $t2 = new Table9(); $t0->addNestedSetChild($t1); $t0->addNestedSetChild($t2); $this->assertEquals(2, $t0->countChildren(), 'addNestedSetChild() adds the object to the internal children collection'); $this->assertEquals($t0, $t1->getParent(), 'addNestedSetChild() sets the object as th parent of the parameter'); $this->assertEquals($t0, $t2->getParent(), 'addNestedSetChild() sets the object as th parent of the parameter'); }