Changeset 3159 for trunk/tests/Migration

Show
Ignore:
Timestamp:
11/15/07 05:16:31 (14 months ago)
Author:
jwage
Message:

New coverage for parser, yaml schema parsing, a few fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/Migration/MysqlTestCase.php

    r3086 r3159  
    3333class Doctrine_Migration_Mysql_TestCase extends Doctrine_UnitTestCase 
    3434{ 
    35  
    3635    protected $serverExists = false; 
    3736 
     
    3938    { 
    4039        parent::setUp(); 
     40         
    4141        try { 
    4242            $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); 
    4444            $this->conn->connect(); 
    4545            $this->serverExists = true; 
     
    4949    } 
    5050 
    51  
    5251    public function testMigration() 
    5352    { 
    54         if($this->serverExists){ 
     53        if ($this->serverExists){ 
    5554            // Clean up any left over tables from broken test runs. 
    5655            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) { } 
    6159 
    6260            // New migration for the 'migration_classes' directory