Changeset 3159 for trunk/tests/Migration
- Timestamp:
- 11/15/07 05:16:31 (14 months ago)
- Files:
-
- 1 modified
-
trunk/tests/Migration/MysqlTestCase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Migration/MysqlTestCase.php
r3086 r3159 33 33 class Doctrine_Migration_Mysql_TestCase extends Doctrine_UnitTestCase 34 34 { 35 36 35 protected $serverExists = false; 37 36 … … 39 38 { 40 39 parent::setUp(); 40 41 41 try { 42 42 $dsn = 'mysql://doctrine_tester:d0cTrynR0x!@localhost/doctrine_unit_test'; 43 $this->conn = $this->manager->openConnection($dsn, 'unit_test',true);43 $this->conn = $this->manager->openConnection($dsn, 'unit_test', true); 44 44 $this->conn->connect(); 45 45 $this->serverExists = true; … … 49 49 } 50 50 51 52 51 public function testMigration() 53 52 { 54 if ($this->serverExists){53 if ($this->serverExists){ 55 54 // Clean up any left over tables from broken test runs. 56 55 try { 57 $this->conn->export->dropTable('migration_test'); 58 $this->conn->export->dropTable('migration_version'); 59 } catch(Exception $e) { 60 } 56 $this->conn->export->dropTable('migration_test'); 57 $this->conn->export->dropTable('migration_version'); 58 } catch(Exception $e) { } 61 59 62 60 // New migration for the 'migration_classes' directory