Skip to content

Commit

Permalink
Fix incorrect expectation call
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 21, 2024
1 parent f2ed903 commit 166c437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/UdpSocketTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testMalformedResponse(): void
$socket = Dns\Internal\UdpSocket::connect('udp://' . \stream_socket_get_name($server, false));

$this->expectException(Dns\DnsTimeoutException::class);
$this->expectErrorMessage("Didn't receive a response within 1 seconds, but received 1 invalid packets on this socket");
$this->expectExceptionMessage("Didn't receive a response within 1 seconds, but received 1 invalid packets on this socket");

$socket->ask($question, 1);
}
Expand Down

0 comments on commit 166c437

Please sign in to comment.