Skip to content

Commit 6e7643c

Browse files
committed
Use Psr7 ServerRequest and Response in tests instead of Symfony's
Allows decoupling kernel tests from the framework, and ease request creation
1 parent e4ed1a3 commit 6e7643c

File tree

10 files changed

+462
-85
lines changed

10 files changed

+462
-85
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ charset = utf-8
1212
[*.php]
1313
indent_size = 4
1414

15-
[{*.yml,$.yaml}]
15+
[{*.yml,*.yaml}]
1616
indent_size = 4
1717

1818
[docs/**openapi.yml]

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
"behat/symfony2-extension": "^2.1",
2525
"friendsofphp/php-cs-fixer": "^2.16",
2626
"nelmio/cors-bundle": "^2.1",
27+
"nyholm/psr7": "^1.3",
2728
"phpspec/prophecy-phpunit": "^2.0",
2829
"phpunit/phpunit": "^9.4",
2930
"symfony/phpunit-bridge": "^5.1",
31+
"symfony/psr-http-message-bridge": "^2.0",
3032
"symfony/web-profiler-bundle": "4.4.*",
3133
"wiremock-php/wiremock-php": "^2.27"
3234
},

0 commit comments

Comments
 (0)