Skip to content

Commit

Permalink
test: fix exception matching
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Aug 12, 2024
1 parent a18ec04 commit 1be7cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ICAP/ICAPClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class ICAPClientTest extends TestCase {
public function testConnect_ShouldThrowRuntimeException() {
$this->expectException(\RuntimeException::class);
$this->expectExceptionMessage('Cannot connect to "tcp://nothinghere:8080": php_network_getaddresses: getaddrinfo for nothinghere failed: Name or service not known (code 0)');
$this->expectExceptionMessageMatches('Cannot connect to "tcp://nothinghere:8080": .*');
$icapClient = new ICAPClient("nothinghere", 8080, 2);
$icapClient->respmod("myservice", [], [], []);
}
Expand Down

0 comments on commit 1be7cf5

Please sign in to comment.