From 7d999305ce794d67557192574a53d286627bc357 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 27 Mar 2019 13:03:44 +0100 Subject: open https://github.com/doctrine/migrations/pull/802 32-bit tests --- php-doctrine-migrations-rpm.patch | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 php-doctrine-migrations-rpm.patch (limited to 'php-doctrine-migrations-rpm.patch') diff --git a/php-doctrine-migrations-rpm.patch b/php-doctrine-migrations-rpm.patch new file mode 100644 index 0000000..69be9f8 --- /dev/null +++ b/php-doctrine-migrations-rpm.patch @@ -0,0 +1,40 @@ +diff -up ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php.rpm ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php +--- ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php.rpm 2019-03-27 09:58:41.000000000 +0100 ++++ ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php 2019-03-27 10:19:22.365477263 +0100 +@@ -15,7 +15,6 @@ use Doctrine\Migrations\Tools\Console\Co + use Doctrine\Migrations\Tools\Console\Command\StatusCommand; + use Doctrine\Migrations\Tools\Console\Command\UpToDateCommand; + use Doctrine\Migrations\Tools\Console\Command\VersionCommand; +-use PackageVersions\Versions; + use Symfony\Component\Console\Application; + use Symfony\Component\Console\Helper\HelperSet; + +@@ -38,7 +37,7 @@ class ConsoleRunner + /** @param AbstractCommand[] $commands */ + public static function createApplication(HelperSet $helperSet, array $commands = []) : Application + { +- $cli = new Application('Doctrine Migrations', Versions::getVersion('doctrine/migrations')); ++ $cli = new Application('Doctrine Migrations', '2.0.0'); + $cli->setCatchExceptions(true); + $cli->setHelperSet($helperSet); + self::addCommands($cli); +diff -up ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php.rpm ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php +--- ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php.rpm 2019-03-27 10:20:22.799818585 +0100 ++++ ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php 2019-03-27 10:20:48.070961326 +0100 +@@ -17,7 +17,6 @@ use Doctrine\Migrations\Tools\Console\Co + use Doctrine\ORM\EntityManager; + use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper; + use Doctrine\ORM\Tools\Setup as OrmSetup; +-use PackageVersions\Versions; + use ReflectionClass; + use RuntimeException; + use Symfony\Component\Console\Application; +@@ -227,7 +226,7 @@ class CliTest extends MigrationTestCase + ); + + $this->conn = $this->getSqliteConnection(); +- $this->application = new Application('Doctrine Migrations Test', Versions::getVersion('doctrine/migrations')); ++ $this->application = new Application('Doctrine Migrations Test', '@VERSION@'); + $this->application->setCatchExceptions(false); + $this->application->setAutoExit(false); + $this->application->getHelperSet()->set( -- cgit