/**
  * Test to make sure reset() does everything it needs to 
  *  include resetting children, and delete new children
  */
 public function test_reset()
 {
     $this->get_tournament_new();
     for ($x = 0; $x < 8; $x++) {
         $this->object->team();
     }
     $orphan_team = $this->object->team();
     $null_team =& $this->object->team();
     $this->assertArraySize($this->object->teams, 10);
     $this->assertTrue($this->object->changed);
     $this->assertTrue($this->object->is_new());
     //
     $this->object->reset();
     //
     $this->assertArraySize($this->object->teams, 0);
     $this->assertTrue($orphan_team->is_orphan());
     $this->assertNull($null_team);
     $this->assertFalse($this->object->changed);
 }