Skip to content

Commit

Permalink
api: update symfony/phpunit-bridge recipe
Browse files Browse the repository at this point in the history
By running
docker compose exec php composer recipes:install symfony/phpunit-bridge --force -v
and then reverting the changes not needed for eCampV3

This will allow to update to phpunit 10.
(symfony/symfony#49069 (comment))
  • Loading branch information
BacLuc committed Nov 30, 2023
1 parent f4e3e8a commit ee6a3ce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 7 additions & 3 deletions api/bin/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ if (!ini_get('date.timezone')) {
}

if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
if (PHP_VERSION_ID >= 80000) {
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
} else {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
}
} else {
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
Expand Down
2 changes: 1 addition & 1 deletion api/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
<extension class="Symfony\Component\Panther\ServerExtension" />
</extensions>
-->
</phpunit>
</phpunit>
8 changes: 4 additions & 4 deletions api/symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,12 @@
"version": "v5.3.3"
},
"symfony/phpunit-bridge": {
"version": "5.1",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.1",
"ref": "bf16921ef8309a81d9f046e9b6369c46bcbd031f"
"branch": "main",
"version": "6.3",
"ref": "1f5830c331065b6e4c9d5fa2105e322d29fcd573"
},
"files": [
".env.test",
Expand Down

0 comments on commit ee6a3ce

Please sign in to comment.