Skip to content

Commit 7242cff

Browse files
authored
Prepare for new swoole releases (#158)
Also dropped PHP 8.0 and make sure we support open-swoole
1 parent 4a28022 commit 7242cff

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Change Log
22

3-
## [NOT RELEASED]
4-
5-
### Added
3+
## 0.2.0
64

75
- Add support for Symfony 7
6+
- Drop support for PHP 7 and PHP 8.0
87

98
## 0.1.1
109

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=8.0.5",
14-
"nyholm/psr7": "^1.4",
13+
"php": ">=8.1",
14+
"nyholm/psr7": "^1.7",
1515
"psr/http-server-handler": "^1.0",
16-
"symfony/runtime": "^5.4 || ^6.0 || ^7.0"
16+
"symfony/runtime": "^5.4.26 || ^6.3.2 || ^7.0"
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "^9.5"

tests/Unit/RequestHandlerRunnerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public function testHandle(): void
4343
'X-Test' => ['Swoole-Runtime'],
4444
]);
4545
$psrResponse->expects(self::once())->method('getBody')->willReturn(Stream::create('Test'));
46+
$psrResponse->expects(self::once())->method('getStatusCode')->willReturn(200);
47+
$psrResponse->expects(self::once())->method('getReasonPhrase')->willReturn('OK');
4648

4749
$response->expects(self::once())->method('setHeader')->with('X-Test', 'Swoole-Runtime');
4850
$response->expects(self::once())->method('write')->with('Test');

0 commit comments

Comments
 (0)