Skip to content

Commit

Permalink
Merge pull request #15 from railsware/feature/add-http-meesage-v2
Browse files Browse the repository at this point in the history
support "psr/http-message" v2 version
  • Loading branch information
gaalferov authored Jun 5, 2023
2 parents 85f817f + 0458fa7 commit 8426e9b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/ci-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ on:

jobs:
phpunit-tests:
name: PHP ${{ matrix.php-version }} Latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
php-versions: [ '7.4','8.0','8.1','8.2' ]
php-version: [ '7.4','8.0','8.1','8.2' ]

steps:
- name: Checkout
Expand All @@ -25,7 +26,7 @@ jobs:
id: setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, curl

- name: Print PHP version
Expand All @@ -50,3 +51,35 @@ jobs:

- name: Run phpunit tests
run: composer test

symfony:
name: Symfony ${{ matrix.symfony }} LTS
runs-on: ubuntu-latest
strategy:
matrix:
include:
- symfony: '5'
php-version: '7.4'
- symfony: '6'
php-version: '8.2'

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer config --no-plugins allow-plugins.symfony/flex true
composer require --no-update --no-interaction --no-progress symfony/flex
composer config extra.symfony.require ${{ matrix.symfony}}
composer update --prefer-dist --no-interaction --prefer-stable --prefer-lowest --no-progress
- name: Execute tests
run: composer test
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"php": "^7.4 || ^8.0",
"ext-curl": "*",
"ext-json": "*",
"psr/http-message": "^1.0",
"psr/http-message": "^1.0 || ^2.0",
"psr/http-client-implementation": "^1.0",
"php-http/client-common": "^2.0",
"php-http/httplug": "^2.0",
Expand All @@ -21,7 +21,7 @@
"symfony/mailer": "^5.4|^6.0",
"phpunit/phpunit": "^9",
"nyholm/psr7": "^1.5",
"vimeo/psalm": "^5.0"
"vimeo/psalm": "^4.0 || ^5.0"
},
"suggest": {
"nyholm/psr7": "PSR-7 message implementation",
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/Sandbox/InboxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function testToggleEmailAddress(): void
$this->assertInstanceOf(Response::class, $response);
$this->assertArrayHasKey('id', $responseData);
$this->assertEquals(self::FAKE_INBOX_ID, $responseData['id']);
$this->assertEquals($expectedData['email_username_enabled'], $responseData['username']);
$this->assertEquals($expectedData['email_username_enabled'], $responseData['email_username_enabled']);
}

public function testResetEmailAddress(): void
Expand Down

0 comments on commit 8426e9b

Please sign in to comment.