Skip to content

Commit

Permalink
Merge pull request #7 from ensi-platform/laravel-11
Browse files Browse the repository at this point in the history
laravel-11
  • Loading branch information
MsNatali authored May 7, 2024
2 parents 3e9be25 + 80b35b7 commit de3447a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,31 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 8.1]
laravel: [8.*, 9.*]
stability: [prefer-lowest, prefer-stable]
php: [8.0, 8.1, 8.2, 8.3]
laravel: [8.*, 9.*, 10.*, 11.*]
include:
- laravel: 8.*
testbench: ^6.23
- laravel: 9.*
testbench: ^7.0
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }}

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
Expand All @@ -42,6 +52,6 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer update --prefer-stable --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
],
"require": {
"php": "^8.0",
"ensi/openapi-httpfoundation-testing": "^0.0.2"
"ensi/openapi-httpfoundation-testing": "^0.0.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"mockery/mockery": "^1.4",
"orchestra/testbench": "^6.0||^7.0||^8.0",
"orchestra/testbench": "^6.0||^7.0||^8.0||^9.0",
"pestphp/pest": "^1.16||^2.0",
"php-parallel-lint/php-var-dump-check": "^0.5.0",
"phpunit/phpunit": "^9.0||^10.0"
"phpunit/phpunit": "^9.0||^10.0||^11.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/ValidatesAgainstOpenApiSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function call($method, $uri, $parameters = [], $cookies = [], $files = []

$this->validateAgainstOpenApiSpec($request, $symfonyRequest, $response, $method);

return $this->createTestResponse($response);
return $this->createTestResponse($response, $request);
}

public function validateAgainstOpenApiSpec(Request $request, SymfonyRequest $symfonyRequest, SymfonyResponse $response, string $method): void
Expand Down

0 comments on commit de3447a

Please sign in to comment.