Skip to content

Commit 528f4bf

Browse files
committed
Get rid of phpunit bridge
1 parent 590984a commit 528f4bf

File tree

7 files changed

+5
-91
lines changed

7 files changed

+5
-91
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@
1414
/phpstan.neon.dist export-ignore
1515
/phpstan-baseline.neon export-ignore
1616
/phpunit.xml.dist export-ignore
17-
/phpunit-phpstan.xml.dist export-ignore
1817
/tests export-ignore
1918
/CONTRIBUTING.md export-ignore

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -51,46 +51,4 @@ jobs:
5151
composer update ${{ env.COMPOSER_FLAGS }}
5252
5353
- name: "Run tests"
54-
run: "vendor/bin/simple-phpunit --verbose"
55-
56-
phpstan_tests:
57-
name: "CI PHPStan Ext"
58-
59-
runs-on: ubuntu-latest
60-
61-
strategy:
62-
matrix:
63-
php-version:
64-
- "7.3"
65-
- "8.3"
66-
67-
steps:
68-
- name: "Checkout"
69-
uses: "actions/checkout@v2"
70-
71-
- name: "Install PHP"
72-
uses: "shivammathur/setup-php@v2"
73-
with:
74-
coverage: "none"
75-
php-version: "${{ matrix.php-version }}"
76-
77-
- name: Get composer cache directory
78-
id: composercache
79-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
80-
81-
- name: Cache dependencies
82-
uses: actions/cache@v2
83-
with:
84-
path: ${{ steps.composercache.outputs.dir }}
85-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
86-
restore-keys: ${{ runner.os }}-composer-
87-
88-
- name: "Install latest dependencies"
89-
run: |
90-
# Require PHPUnit directly bypassing the symfony bridge
91-
composer remove symfony/phpunit-bridge --dev --no-update
92-
composer require phpunit/phpunit:^9 --dev --no-update
93-
composer update ${{ env.COMPOSER_FLAGS }}
94-
95-
- name: "Run tests"
96-
run: vendor/bin/phpunit -c phpunit-phpstan.xml.dist
54+
run: "vendor/bin/phpunit"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"php": "^7.2 || ^8.0"
2121
},
2222
"require-dev": {
23-
"symfony/phpunit-bridge": "^7",
23+
"phpunit/phpunit": "^8 || ^9",
2424
"phpstan/phpstan": "^1.11.6",
2525
"phpstan/phpstan-strict-rules": "^1.1"
2626
},
@@ -43,7 +43,7 @@
4343
}
4444
},
4545
"scripts": {
46-
"test": "SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 vendor/bin/simple-phpunit",
46+
"test": "vendor/bin/phpunit",
4747
"phpstan": "phpstan analyse"
4848
}
4949
}

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ parameters:
88
treatPhpDocTypesAsCertain: false
99

1010
bootstrapFiles:
11-
- tests/phpstan-locate-phpunit-autoloader.php
11+
- vendor/autoload.php
1212

1313
excludePaths:
1414
- tests/PHPStanTests/nsrt/*

phpunit-phpstan.xml.dist

Lines changed: 0 additions & 20 deletions
This file was deleted.

phpunit.xml.dist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
>
99
<testsuites>
1010
<testsuite name="PCRE Test Suite">
11-
<directory>tests/PregTests</directory>
12-
<directory>tests/RegexTests</directory>
11+
<directory>tests</directory>
1312
</testsuite>
1413
</testsuites>
1514

tests/phpstan-locate-phpunit-autoloader.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)