vendor/doctrine-migrations/tests/Doctrine/DBAL/Migrations/Tests/MigrationTestCase.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/doctrine-migrations/tests/Doctrine/DBAL/Migrations/Tests/MigrationTestCase.php Fri Nov 25 18:55:43 2011 +0100
@@ -0,0 +1,26 @@
+<?php
+
+namespace Doctrine\DBAL\Migrations\Tests;
+
+use Doctrine\Common\ClassLoader;
+use Doctrine\DBAL\DriverManager;
+
+abstract class MigrationTestCase extends \PHPUnit_Framework_TestCase
+{
+ public function getSqliteConnection()
+ {
+ $params = array('driver' => 'pdo_sqlite', 'memory' => true);
+ return DriverManager::getConnection($params);
+ }
+
+ /**
+ * @return \Doctrine\DBAL\Migrations\Configuration\Configuration
+ */
+ public function getSqliteConfiguration()
+ {
+ $config = new \Doctrine\DBAL\Migrations\Configuration\Configuration($this->getSqliteConnection());
+ $config->setMigrationsDirectory(\sys_get_temp_dir());
+ $config->setMigrationsNamespace('DoctrineMigrations');
+ return $config;
+ }
+}
\ No newline at end of file