public function testAddChild()
 {
     Table9Peer::doDeleteAll();
     $t1 = new Table9();
     $t1->setTitle('t1');
     $t1->makeRoot();
     $t1->save();
     $t2 = new Table9();
     $t2->setTitle('t2');
     $t1->addChild($t2);
     $t2->save();
     $t3 = new Table9();
     $t3->setTitle('t3');
     $t1->addChild($t3);
     $t3->save();
     $t4 = new Table9();
     $t4->setTitle('t4');
     $t2->addChild($t4);
     $t4->save();
     $expected = array('t1' => array(1, 8, 0), 't2' => array(4, 7, 1), 't3' => array(2, 3, 1), 't4' => array(5, 6, 2));
     $this->assertEquals($expected, $this->dumpTree(), 'addChild() adds the child and saves it');
 }