Skip to content

Commit 9203935

Browse files
committed
feat: allow PHPUnit 10-12
1 parent 617fdbe commit 9203935

File tree

4 files changed

+10
-26
lines changed

4 files changed

+10
-26
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
10+
## [3.1.2] - 2025-11-11
11+
12+
- Allow PHPUnit > 9
13+
- Removed PhpUnitBackwardCompatibleTrait
14+
915
## [3.1.1] - 2024-09-01
1016

1117
- Switched to `httpbin.org` for tests now that its fixed. (Reverts [#56](https://github.com/php-http/client-integration-tests/pull/56))

src/HttpBaseTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
abstract class HttpBaseTest extends TestCase
1212
{
13-
use PhpUnitBackwardCompatibleTrait;
14-
1513
/**
1614
* @var string
1715
*/
@@ -223,7 +221,7 @@ protected function assertResponse(ResponseInterface $response, array $options =
223221
if (null === $options['body']) {
224222
$this->assertEmpty($response->getBody()->__toString());
225223
} else {
226-
self::assertStringContainsStringCompatible($options['body'], $response->getBody()->__toString());
224+
self::assertStringContainsString($options['body'], $response->getBody()->__toString());
227225
}
228226
}
229227

src/HttpFeatureTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
abstract class HttpFeatureTest extends TestCase
1111
{
12-
use PhpUnitBackwardCompatibleTrait;
13-
1412
/**
1513
* @var MessageFactory
1614
*/
@@ -143,7 +141,7 @@ public function testEncoding()
143141
$response = $this->createClient()->sendRequest($request);
144142

145143
$this->assertSame(200, $response->getStatusCode());
146-
$this->assertStringContainsStringCompatible('', $response->getBody()->__toString());
144+
$this->assertStringContainsString('', $response->getBody()->__toString());
147145
}
148146

149147
/**
@@ -159,7 +157,7 @@ public function testGzip()
159157
$response = $this->createClient()->sendRequest($request);
160158

161159
$this->assertSame(200, $response->getStatusCode());
162-
$this->assertStringContainsStringCompatible('gzip', $response->getBody()->__toString());
160+
$this->assertStringContainsString('gzip', $response->getBody()->__toString());
163161
}
164162

165163
/**
@@ -175,7 +173,7 @@ public function testDeflate()
175173
$response = $this->createClient()->sendRequest($request);
176174

177175
$this->assertSame(200, $response->getStatusCode());
178-
$this->assertStringContainsStringCompatible('deflate', $response->getBody()->__toString());
176+
$this->assertStringContainsString('deflate', $response->getBody()->__toString());
179177
}
180178

181179
/**

src/PhpUnitBackwardCompatibleTrait.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)