Skip to content

Commit 9ca60cd

Browse files
committed
test with newer php versions
1 parent cfae085 commit 9ca60cd

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
php-version: ["8.2", "8.3"]
39+
php-version: ["8.2", "8.3", "8.4", "8.5"]
4040
composer-flags: [""]
4141
name: [""]
4242
include:

src/Client.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use Symfony\Contracts\HttpClient\HttpClientInterface;
1212
use Symfony\Contracts\HttpClient\ResponseInterface;
1313

14+
use function sprintf;
15+
1416
final class Client implements ClientInterface
1517
{
1618
private HttpClientInterface $client;

tests/DsnResolverTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@
77

88
class DsnResolverTest extends TestCase
99
{
10-
public function provideResolveTest(): iterable
11-
{
12-
yield ['http://127.0.0.1:5000', 'http://127.0.0.1:5000'];
13-
yield ['https://127.0.0.1:5000', 'https://127.0.0.1:5000'];
14-
yield ['https://foo:5000', 'https://foo:5000'];
15-
yield ['http://127.0.0.1:5000', '127.0.0.1:5000'];
16-
yield ['http://127.0.0.1:5000', '127.0.0.1:5000'];
17-
yield ['http://127.0.0.1:8500', null];
18-
}
19-
2010
/** @dataProvider provideResolveTest */
2111
public function testResolve(string $expected, ?string $dsn)
2212
{
@@ -32,4 +22,14 @@ public function testResolve(string $expected, ?string $dsn)
3222
}
3323
}
3424
}
25+
26+
public function provideResolveTest(): iterable
27+
{
28+
yield ['http://127.0.0.1:5000', 'http://127.0.0.1:5000'];
29+
yield ['https://127.0.0.1:5000', 'https://127.0.0.1:5000'];
30+
yield ['https://foo:5000', 'https://foo:5000'];
31+
yield ['http://127.0.0.1:5000', '127.0.0.1:5000'];
32+
yield ['http://127.0.0.1:5000', '127.0.0.1:5000'];
33+
yield ['http://127.0.0.1:8500', null];
34+
}
3535
}

0 commit comments

Comments
 (0)