Skip to content

Commit

Permalink
Merge pull request #174 from SocialConnect/psr-libs
Browse files Browse the repository at this point in the history
Allow v2 of PSR libs.
  • Loading branch information
ADmad authored May 7, 2022
2 parents d3bbee5 + 0e48798 commit 39e57b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.2', '7.4', '8.0']
php-version: ['7.4', '8.0', '8.1']
composer-opts: ['']
include:
- php-version: '7.1'
composer-opts: '--prefer-lowest'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -25,7 +25,7 @@ jobs:

- name: Composer install
run: |
if [[ ${{ matrix.php-version }} == '8.0' ]]; then
if [[ ${{ matrix.php-version }} == '8.0' || ${{ matrix.php-version }} == '8.1' ]]; then
composer remove --dev squizlabs/php_codesniffer phpstan/phpstan-shim phpunit/phpunit
composer require --dev phpunit/phpunit:^8.5
else
Expand All @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -68,4 +68,4 @@ jobs:

- name: Run phpstan
if: success() || failure()
run: vendor/bin/phpstan.phar analyse src/ tests/ --no-progress --level 2
run: vendor/bin/phpstan.phar analyse src/ tests/ --no-progress --level 2
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"require": {
"php": ">=7.1",
"ext-json": "*",
"psr/http-client": "^1.0",
"psr/simple-cache": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-client": "^1.0 || ^2.0",
"psr/simple-cache": "^1.0 || ^2.0",
"psr/http-factory": "^1.0 || ^2.0",
"socialconnect/jwx": "^1.0"
},
"require-dev": {
Expand Down
5 changes: 4 additions & 1 deletion tests/Test/OpenIDConnect/Provider/AppleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ protected function getTestResponseForGetIdentity(): ResponseInterface

public function testGetOpenIDUrl()
{
// nothing to test, because Apple->testGetOpenIDUrl will throw an exception on call
$this->markTestSkipped(
'Nothing to test, '
. 'because Apple->testGetOpenIDUrl will throw an exception on call'
);
}

public function testGetIdentitySuccess()
Expand Down

0 comments on commit 39e57b2

Please sign in to comment.