Skip to content

Commit

Permalink
Prepare for new swoole releases (#158)
Browse files Browse the repository at this point in the history
Also dropped PHP 8.0 and make sure we support open-swoole
  • Loading branch information
Nyholm authored Dec 12, 2023
1 parent 4a28022 commit 7242cff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Change Log

## [NOT RELEASED]

### Added
## 0.2.0

- Add support for Symfony 7
- Drop support for PHP 7 and PHP 8.0

## 0.1.1

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
}
],
"require": {
"php": ">=8.0.5",
"nyholm/psr7": "^1.4",
"php": ">=8.1",
"nyholm/psr7": "^1.7",
"psr/http-server-handler": "^1.0",
"symfony/runtime": "^5.4 || ^6.0 || ^7.0"
"symfony/runtime": "^5.4.26 || ^6.3.2 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/RequestHandlerRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public function testHandle(): void
'X-Test' => ['Swoole-Runtime'],
]);
$psrResponse->expects(self::once())->method('getBody')->willReturn(Stream::create('Test'));
$psrResponse->expects(self::once())->method('getStatusCode')->willReturn(200);
$psrResponse->expects(self::once())->method('getReasonPhrase')->willReturn('OK');

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

0 comments on commit 7242cff

Please sign in to comment.