8000 run integration tests using PHPUnit 11 · symfony/symfony@7178ae5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7178ae5

Browse files
committed
run integration tests using PHPUnit 11
1 parent af68335 commit 7178ae5

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

.github/workflows/integration-tests.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
extensions: "json,couchbase-3.2.2,memcached,mongodb-1.12.0,redis,rdkafka,xsl,ldap,relay"
191191
ini-values: date.timezone=UTC,memory_limit=-1,default_socket_timeout=10,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
192192
php-version: "${{ matrix.php }}"
193-
tools: pecl
193+
tools: pecl,phpunit:11.3
194194

195195
- name: Display versions
196196
run: |
@@ -214,10 +214,6 @@ jobs:
214214
composer update --no-progress --ansi
215215
echo "::endgroup::"
216216
217-
echo "::group::install phpunit"
218-
./phpunit install
219-
echo "::endgroup::"
220-
221217
- name: Check for changes in translation files
222218
id: changed-translation-files
223219
run: |
@@ -231,7 +227,7 @@ jobs:
231227
git diff --exit-code src/ || (echo '::error::Run "php .github/sync-translations.php" to fix XLIFF files.' && exit 1)
232228
233229
- name: Run tests
234-
run: ./phpunit --group integration -v
230+
run: phpunit --group integration
235231
env:
236232
INTEGRATION_FTP_URL: 'ftp://test:test@localhost'
237233
REDIS_HOST: 'localhost:16379'

phpunit-bootstrap.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
use Symfony\Component\ErrorHandler\ErrorHandler;
13+
14+
require __DIR__ . '/vendor/autoload.php';
15+
16+
// see https://github.com/symfony/symfony/issues/53812#issuecomment-1962740145
17+
set_exception_handler([new ErrorHandler(), 'handleException']);

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.3/phpunit.xsd"
55
backupGlobals="false"
66
colors="true"
7-
bootstrap="vendor/autoload.php"
7+
bootstrap="phpunit-bootstrap.php"
88
failOnRisky="true"
99
failOnWarning="true"
1010
>

0 commit comments

Comments
 (0)
0