Наследование: extends Doctrine\Tests\DbalFunctionalTestCase
Пример #1
0
 protected function setUp()
 {
     parent::setUp();
     if (!Type::hasType('point')) {
         Type::addType('point', 'Doctrine\\Tests\\Types\\MySqlPointType');
     }
 }
 public function tearDown()
 {
     parent::tearDown();
     if (!$this->_conn) {
         return;
     }
     $this->_conn->getConfiguration()->setFilterSchemaAssetsExpression(null);
 }
 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);
 }
 public function createListTableColumns()
 {
     $table = parent::createListTableColumns();
     $table->getColumn('id')->setAutoincrement(true);
     return $table;
 }