setUp() protected method

protected setUp ( )
 protected function setUp()
 {
     parent::setUp();
     if (!Type::hasType('point')) {
         Type::addType('point', 'Doctrine\\Tests\\Types\\MySqlPointType');
     }
 }
 public function setUp()
 {
     parent::setUp();
     if (!isset($GLOBALS['db_username'])) {
         $this->markTestSkipped('Foo');
     }
     $username = $GLOBALS['db_username'];
     $query = "GRANT ALL PRIVILEGES TO " . $username;
     $conn = \Doctrine\Tests\TestUtil::getTempConnection();
     $conn->executeUpdate($query);
 }