Skip to content

Commit 6915d97

Browse files
authored
Merge pull request #94 from clue-labs/php8.5
Run tests on PHP 8.5 and update test environment
2 parents f1fb1ba + 06a769f commit 6915d97

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.5
1415
- 8.4
1516
- 8.3
1617
- 8.2

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
"require": {
1414
"php": ">=5.3",
1515
"clue/json-stream": "^0.1",
16-
"react/event-loop": "^1.2",
16+
"react/event-loop": "^1.6",
1717
"react/http": "^1.11",
18-
"react/promise": "^3.2 || ^2.11 || ^1.3",
18+
"react/promise": "^3.3 || ^2.11 || ^1.3",
1919
"react/promise-stream": "^1.6",
20-
"react/socket": "^1.16",
20+
"react/socket": "^1.17",
2121
"react/stream": "^1.4",
22-
"rize/uri-template": "^0.4 || ^0.3"
22+
"rize/uri-template": "^0.4.1 || ^0.3"
2323
},
2424
"require-dev": {
2525
"clue/caret-notation": "^0.2",

tests/ClientTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,21 @@ public function setUpClient()
2929
$this->client = new Client();
3030

3131
$ref = new \ReflectionProperty($this->client, 'browser');
32-
$ref->setAccessible(true);
32+
if (PHP_VERSION_ID < 80100) {
33+
$ref->setAccessible(true);
34+
}
3335
$ref->setValue($this->client, $this->browser);
3436

3537
$ref = new \ReflectionProperty($this->client, 'parser');
36-
$ref->setAccessible(true);
38+
if (PHP_VERSION_ID < 80100) {
39+
$ref->setAccessible(true);
40+
}
3741
$ref->setValue($this->client, $this->parser);
3842

3943
$ref = new \ReflectionProperty($this->client, 'streamingParser');
40-
$ref->setAccessible(true);
44+
if (PHP_VERSION_ID < 80100) {
45+
$ref->setAccessible(true);
46+
}
4147
$ref->setValue($this->client, $this->streamingParser);
4248
}
4349

0 commit comments

Comments
 (0)