Skip to content

Commit 92c3b3f

Browse files
authored
Merge pull request #26 from purplepixie/connection-exception
updated exception test to use 0.0.0.0
2 parents 665a192 + bad26cc commit 92c3b3f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/DNSQueryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/**
44
* Copyright (C) 2022, Fabian Bett / Bett Ingenieure GmbH
5+
* Additions made Copyright (C) 2025 David Cutting
56
*
67
* This is free software: you can redistribute it and/or modify
78
* it under the terms of the GNU General Public License as published by
@@ -40,7 +41,7 @@ public function testInvalidDNSTypeName(): void
4041

4142
public function testConnectionExceptionTCP(): void
4243
{
43-
$query = new DNSQuery("127.0.0.1", 53, 60, false);
44+
$query = new DNSQuery("0.0.0.0", 53, 60, false);
4445
$query->setConnectionException(true);
4546
$this->expectException(\PurplePixie\PhpDns\Exceptions\ConnectionFailure::class);
4647
$query->query('google.com', DNSTypes::NAME_A);

0 commit comments

Comments
 (0)