aboutsummaryrefslogtreecommitdiffstats
path: root/tests/network
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-11-01 08:16:10 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-11-01 08:16:10 +0100
commit9887a9d76cb5ab872313a0970594d2a8e6ae8f02 (patch)
treeda740abfcb0f9123091d9d62f64674d57a4e2235 /tests/network
parentb40fe17d930795da22c61be247a84ceb3150bccd (diff)
parent163aac74dbe500eac223ea2ebdbce0a76c1d6ab4 (diff)
downloadforums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.tar
forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.tar.gz
forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.tar.bz2
forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.tar.xz
forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.zip
Merge pull request #5724 from rubencm/ticket/16190
[ticket/16190] Deprecate phpbb's checkdnsrr wrapper
Diffstat (limited to 'tests/network')
-rw-r--r--tests/network/checkdnsrr_test.php67
1 files changed, 0 insertions, 67 deletions
diff --git a/tests/network/checkdnsrr_test.php b/tests/network/checkdnsrr_test.php
deleted file mode 100644
index 8cbd4f7e97..0000000000
--- a/tests/network/checkdnsrr_test.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
-*
-* This file is part of the phpBB Forum Software package.
-*
-* @copyright (c) phpBB Limited <https://www.phpbb.com>
-* @license GNU General Public License, version 2 (GPL-2.0)
-*
-* For full copyright and license information, please see
-* the docs/CREDITS.txt file.
-*
-*/
-
-/**
-* @group slow
-*/
-class phpbb_network_checkdnsrr_test extends phpbb_test_case
-{
- public function data_provider()
- {
- return array(
- // Existing MX record
- array('phpbb.com', 'MX', true),
-
- // Non-existing MX record
- array('does-not-exist.phpbb.com', 'MX', false),
-
- // Existing A record
- array('www.phpbb.com', 'A', true),
-
- // Non-existing A record
- array('does-not-exist.phpbb.com', 'A', false),
-
- // Existing AAAA record
- array('www.six.heise.de', 'AAAA', true),
-
- // Non-existing AAAA record
- array('does-not-exist.phpbb.com', 'AAAA', false),
-
- // Existing CNAME record
- array('area51.phpbb.com', 'CNAME', true),
-
- // Non-existing CNAME record
- array('does-not-exist.phpbb.com', 'CNAME', false),
-
- // Existing NS record
- array('phpbb.com', 'NS', true),
-
- // Non-existing NS record
- array('does-not-exist', 'NS', false),
-
- // Existing TXT record
- array('phpbb.com', 'TXT', true),
-
- // Non-existing TXT record
- array('does-not-exist', 'TXT', false),
- );
- }
-
- /**
- * @dataProvider data_provider
- */
- public function test_checkdnsrr($host, $type, $expected)
- {
- $this->assertEquals($expected, phpbb_checkdnsrr($host, $type));
- }
-}