From b56dc2de39ea8a017f3916bcd84b54954b2bb27a Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 21 Oct 2015 15:38:15 +0200 Subject: [PATCH 1/3] remove unused namespace --- .../DBAL/Migrations/Configuration/ArrayConfiguration.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Doctrine/DBAL/Migrations/Configuration/ArrayConfiguration.php b/lib/Doctrine/DBAL/Migrations/Configuration/ArrayConfiguration.php index b5d7f44524..5eae68b5ab 100644 --- a/lib/Doctrine/DBAL/Migrations/Configuration/ArrayConfiguration.php +++ b/lib/Doctrine/DBAL/Migrations/Configuration/ArrayConfiguration.php @@ -18,7 +18,6 @@ */ namespace Doctrine\DBAL\Migrations\Configuration; -use Doctrine\Common\Proxy\Exception\InvalidArgumentException; /** * Load migration configuration information from a PHP configuration file. From 3a4f8368e4b7b95d2e6c51c26f6dc41bb05a5ce5 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 21 Oct 2015 15:48:51 +0200 Subject: [PATCH 2/3] tests: move autoload of tests to composer --- composer.json | 5 +++++ phpunit.xml.dist | 2 +- tests/bootstrap.php | 4 ---- 3 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 tests/bootstrap.php diff --git a/composer.json b/composer.json index 2f6088b41b..89aff40b80 100644 --- a/composer.json +++ b/composer.json @@ -32,6 +32,11 @@ "Doctrine\\DBAL\\Migrations\\": "lib/Doctrine/DBAL/Migrations" } }, + "autoload-dev": { + "psr-4": { + "Doctrine\\DBAL\\Migrations\\Tests\\": "tests/Doctrine/DBAL/Migrations/Tests" + } + }, "extra": { "branch-alias": { "dev-master": "v1.1.x-dev" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e67d2526ce..d510b88c2c 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,6 +1,6 @@ - + ./tests/Doctrine/ diff --git a/tests/bootstrap.php b/tests/bootstrap.php deleted file mode 100644 index 98b41df75a..0000000000 --- a/tests/bootstrap.php +++ /dev/null @@ -1,4 +0,0 @@ -add('Doctrine\DBAL\Migrations\Tests', __DIR__); From d263c7bfac7188009ab0717ed5aa6577e80bb624 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 21 Oct 2015 15:51:39 +0200 Subject: [PATCH 3/3] composer: drop symfony/console from suggested packages, since it's required package --- composer.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/composer.json b/composer.json index 89aff40b80..cb6695dd51 100644 --- a/composer.json +++ b/composer.json @@ -24,9 +24,6 @@ "mockery/mockery": "^0.9.4", "johnkary/phpunit-speedtrap": "~1.0@dev" }, - "suggest": { - "symfony/console": "to run the migration from the console" - }, "autoload": { "psr-4": { "Doctrine\\DBAL\\Migrations\\": "lib/Doctrine/DBAL/Migrations"