Skip to content

Commit

Permalink
Remove PHPUnit direct require again
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Dec 9, 2021
1 parent b94a0f8 commit 832fb3e
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 1,176 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -105,11 +105,11 @@ jobs:

- name: "Run tests"
if: "matrix.php-version != '7.3'"
run: "SYMFONY_PHPUNIT_VERSION=8.5 vendor/bin/simple-phpunit --verbose"
run: "vendor/bin/simple-phpunit --verbose"

- name: "Run complete test suite on 7.3"
if: "matrix.php-version == '7.3'"
run: "SYMFONY_PHPUNIT_VERSION=8.5 vendor/bin/simple-phpunit --configuration tests/complete.phpunit.xml"
run: "vendor/bin/simple-phpunit --configuration tests/complete.phpunit.xml"

validation:
name: "Composer validation"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/phpstan.yml
Expand Up @@ -21,7 +21,8 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "7.2"
- "8.1"

steps:
- name: "Checkout"
Expand All @@ -46,6 +47,9 @@ jobs:
key: "php-${{ matrix.php-version }}-symfony-php-unit-version-${{ env.SYMFONY_PHPUNIT_VERSION }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-symfony-php-unit-version-${{ env.SYMFONY_PHPUNIT_VERSION }}"

- name: "Initialize PHPUnit sources"
run: "vendor/bin/simple-phpunit --filter NO_TEST_JUST_AUTOLOAD_THANKS"

- name: "Install highest dependencies from composer.json using composer binary provided by system"
run: "composer config platform --unset && composer update ${{ env.COMPOSER_FLAGS }}"

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -45,8 +45,7 @@
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1",
"phpstan/phpstan-strict-rules": "^1",
"phpunit/phpunit": "^8.5"
"phpstan/phpstan-strict-rules": "^1"
},
"suggest": {
"ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",
Expand Down

0 comments on commit 832fb3e

Please sign in to comment.