Skip to content

Commit

Permalink
Merge pull request #371 from TomasVotruba/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
mikeSimonson committed Oct 22, 2015
2 parents 7eb674d + fecfd6c commit 68cc7bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 41 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ tests/phpunit.xml
vendor/
composer.lock
box.phar
phpunit.xml
42 changes: 1 addition & 41 deletions tests/Doctrine/DBAL/Migrations/Tests/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Doctrine\DBAL\Migrations\Tests;

use Doctrine\DBAL\Migrations\Configuration\Configuration;
use Doctrine\DBAL\Schema\Schema;

class ConfigurationTest extends MigrationTestCase
{
Expand Down Expand Up @@ -32,7 +31,7 @@ public function testValidateMigrationsDirectoryRequired()
$config->setMigrationsNamespace("DoctrineMigrations\\");

$this->setExpectedException(
"Doctrine\DBAL\Migrations\MigrationException",
"Doctrine\\DBAL\\Migrations\\MigrationException",
"Migrations directory must be configured in order to use Doctrine migrations."
);
$config->validate();
Expand Down Expand Up @@ -214,42 +213,3 @@ public function versionProvider()
];
}
}

class ConfigMigration extends \Doctrine\DBAL\Migrations\AbstractMigration
{
public function down(Schema $schema)
{

}

public function up(Schema $schema)
{

}
}

class Config2Migration extends \Doctrine\DBAL\Migrations\AbstractMigration
{
public function down(Schema $schema)
{

}

public function up(Schema $schema)
{

}
}

class Config3Migration extends \Doctrine\DBAL\Migrations\AbstractMigration
{
public function down(Schema $schema)
{

}

public function up(Schema $schema)
{

}
}
5 changes: 5 additions & 0 deletions tests/Doctrine/DBAL/Migrations/Tests/MigrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@

abstract class MigrationTestCase extends \PHPUnit_Framework_TestCase
{
/**
* @var OutputWriter
*/
private $outputWriter;

public function getSqliteConnection()
{
$params = ['driver' => 'pdo_sqlite', 'memory' => true];
Expand Down

0 comments on commit 68cc7bf

Please sign in to comment.