Skip to content

Commit 166c437

Browse files
committed
Fix incorrect expectation call
1 parent f2ed903 commit 166c437

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/UdpSocketTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testMalformedResponse(): void
2828
$socket = Dns\Internal\UdpSocket::connect('udp://' . \stream_socket_get_name($server, false));
2929

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

3333
$socket->ask($question, 1);
3434
}

0 commit comments

Comments
 (0)