diff -r bbdc7f9aa25e -r 03b14b0fe101 vendor/doctrine-migrations/tests/Doctrine/DBAL/Migrations/Tests/MigrationTest.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/doctrine-migrations/tests/Doctrine/DBAL/Migrations/Tests/MigrationTest.php Fri Nov 25 18:55:43 2011 +0100 @@ -0,0 +1,34 @@ +config = new Configuration($this->getSqliteConnection()); + $this->config->setMigrationsDirectory(\sys_get_temp_dir()); + $this->config->setMigrationsNamespace('DoctrineMigrations\\'); + } + + public function testMigrateToUnknownVersionThrowsException() + { + $migration = new Migration($this->config); + + $this->setExpectedException('Doctrine\DBAL\Migrations\MigrationException', 'Could not find migration version 1234'); + $migration->migrate('1234'); + } + + public function testMigrateToCurrentVersionReturnsEmpty() + { + $migration = new Migration($this->config); + + $sql = $migration->migrate('0'); + $this->assertEquals(array(), $sql); + } +} \ No newline at end of file