Skip to content

Commit d6972d4

Browse files
Merge branch '3.3' into 3.4
* 3.3: fix merge Fix in simple-phpunit script
2 parents 90986f4 + e36a697 commit d6972d4

19 files changed

+7
-40
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ $COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar') || ($COMPOSER = rt
3838
? $PHP.' '.escapeshellarg($COMPOSER)
3939
: 'composer';
4040

41-
if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__FILE__)."\n".getenv('SYMFONY_PHPUNIT_REMOVE') !== @file_get_contents("$PHPUNIT_DIR/.$PHPUNIT_VERSION.md5")) {
41+
if (false === $SYMFONY_PHPUNIT_REMOVE = getenv('SYMFONY_PHPUNIT_REMOVE')) {
42+
$SYMFONY_PHPUNIT_REMOVE = 'phpspec/prophecy symfony/yaml';
43+
}
44+
45+
if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__FILE__)."\n".$SYMFONY_PHPUNIT_REMOVE !== @file_get_contents("$PHPUNIT_DIR/.$PHPUNIT_VERSION.md5")) {
4246
// Build a standalone phpunit without symfony/yaml nor prophecy by default
4347

4448
@mkdir($PHPUNIT_DIR, 0777, true);
@@ -60,8 +64,7 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
6064
$zip->extractTo(getcwd());
6165
$zip->close();
6266
chdir("phpunit-$PHPUNIT_VERSION");
63-
$SYMFONY_PHPUNIT_REMOVE = getenv('SYMFONY_PHPUNIT_REMOVE');
64-
passthru("$COMPOSER remove --no-update ".('' === $SYMFONY_PHPUNIT_REMOVE ?: 'phpspec/prophecy symfony/yaml'));
67+
passthru("$COMPOSER remove --no-update ".$SYMFONY_PHPUNIT_REMOVE);
6568
if (5.1 <= $PHPUNIT_VERSION && $PHPUNIT_VERSION < 5.4) {
6669
passthru("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
6770
}
@@ -83,7 +86,7 @@ Symfony\Bridge\PhpUnit\TextUI\Command::main();
8386
EOPHP
8487
);
8588
chdir('..');
86-
file_put_contents(".$PHPUNIT_VERSION.md5", md5_file(__FILE__)."\n".getenv('SYMFONY_PHPUNIT_REMOVE'));
89+
file_put_contents(".$PHPUNIT_VERSION.md5", md5_file(__FILE__)."\n".$SYMFONY_PHPUNIT_REMOVE);
8790
chdir($oldPwd);
8891

8992
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services24.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
1010

1111
/**
12-
* ProjectServiceContainer.
13-
*
1412
* This class has been auto-generated
1513
* by the Symfony Dependency Injection Component.
1614
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services26.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
1010

1111
/**
12-
* Symfony_DI_PhpDumper_Test_EnvParameters.
13-
*
1412
* This class has been auto-generated
1513
* by the Symfony Dependency Injection Component.
1614
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services31.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
1010

1111
/**
12-
* ProjectServiceContainer.
13-
*
1412
* This class has been auto-generated
1513
* by the Symfony Dependency Injection Component.
1614
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services33.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
1010

1111
/**
12-
* ProjectServiceContainer.
13-
*
1412
* This class has been auto-generated
1513
* by the Symfony Dependency Injection Component.
1614
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_as_files.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException;
267267
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
268268

269269
/**
270-
* ProjectServiceContainer.
271-
*
272270
* This class has been auto-generated
273271
* by the Symfony Dependency Injection Component.
274272
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_array_params.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
1010

1111
/**
12-
* ProjectServiceContainer.
13-
*
1412
* This class has been auto-generated
1513
* by the Symfony Dependency Injection Component.
1614
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_base64_env.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
1010

1111
/**
12-
* Symfony_DI_PhpDumper_Test_Base64Parameters.
13-
*
1412
* This class has been auto-generated
1513
* by the Symfony Dependency Injection Component.
1614
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_legacy_privates.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
1010

1111
/**
12-
* Symfony_DI_PhpDumper_Test_Legacy_Privates.
13-
*
1412
* This class has been auto-generated
1513
* by the Symfony Dependency Injection Component.
1614
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_locator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
1010

1111
/**
12-
* ProjectServiceContainer.
13-
*
1412
* This class has been auto-generated
1513
* by the Symfony Dependency Injection Component.
1614
*

0 commit comments

Comments
 (0)