Skip to content

Commit bac9f7e

Browse files
committed
Chore(deps) - Updated phpunit/phpunit flex recipe
1 parent 27c244a commit bac9f7e

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
###> symfony/framework-bundle ###
66
APP_ENV=test
7-
APP_SECRET=2edbe69f411744beb240bc58fff311bd
7+
APP_SECRET='$ecretf0rt3st'
88
###< symfony/framework-bundle ###
99

1010
###> symfony-flex-backend ###

bin/phpunit

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!ini_get('date.timezone')) {
5+
ini_set('date.timezone', 'UTC');
6+
}
7+
8+
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9+
if (PHP_VERSION_ID >= 80000) {
10+
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
11+
} else {
12+
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
13+
require PHPUNIT_COMPOSER_INSTALL;
14+
PHPUnit\TextUI\Command::main();
15+
}
16+
} else {
17+
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
18+
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
19+
exit(1);
20+
}
21+
22+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
23+
}

symfony.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,17 @@
168168
"version": "1.0.1"
169169
},
170170
"phpunit/phpunit": {
171-
"version": "12.1",
171+
"version": "12.4",
172172
"recipe": {
173173
"repo": "github.com/symfony/recipes",
174174
"branch": "main",
175-
"version": "10.0",
176-
"ref": "bb22cf8d8c554a623b427d5f3416b538f5525233"
175+
"version": "11.1",
176+
"ref": "c6658a60fc9d594805370eacdf542c3d6b5c0869"
177177
},
178178
"files": [
179179
".env.test",
180-
"phpunit.dist.xml",
180+
"bin/phpunit",
181+
"phpunit.xml.dist",
181182
"tests/bootstrap.php"
182183
]
183184
},

0 commit comments

Comments
 (0)