1--TEST--
2dns_check_record() error conditions
3--FILE--
4<?php
5try {
6    dns_check_record('');
7} catch (\ValueError $exception) {
8    echo $exception->getMessage() . "\n";
9}
10try {
11    // A random DNS Mode
12    dns_check_record('php.net', 15263480);
13} catch (\ValueError $exception) {
14    echo $exception->getMessage() . "\n";
15}
16?>
17--EXPECT--
18dns_check_record(): Argument #1 ($hostname) cannot be empty
19dns_check_record(): Argument #2 ($type) must be a valid DNS record type
20