Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit a25f943

Browse files
committed
Client tests: Match "Invalid URL" error
1 parent 76cdab5 commit a25f943

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/HttpClient/Tests/CurlClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function test_invalid_scheme() {
2626

2727
public function test_dns_failure() {
2828
$this->expectClientError(new Request('http://nope.' . uniqid() . '/'), 300, [
29-
'message' => ['unable to open a stream to http://nope.', 'Request timed out', 'cURL error']
29+
'message' => ['unable to open a stream to http://nope.', 'Request timed out', 'cURL error', 'Invalid URL']
3030
]);
3131
}
3232

components/HttpClient/Tests/SocketClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function test_invalid_scheme() {
3636
]);
3737
}
3838

39-
public function test_dns_failure() {
39+
public function test_dns_failure() {
4040
$this->expectClientError(new Request('http://nope.' . uniqid() . '/'), 300, [
41-
'message' => ['unable to open a stream to http://nope.', 'Request timed out']
41+
'message' => ['unable to open a stream to http://nope.', 'Request timed out', 'Invalid URL']
4242
]);
4343
}
4444

0 commit comments

Comments
 (0)