Annotation of embedaddon/php/ext/standard/tests/network/getmxrr.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: getmxrr() test
                      3: --SKIPIF--
                      4: <?php
                      5: if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
                      6: if (substr(PHP_OS, 0, 3) == 'WIN') {
                      7:     die('skip: no Windows support');
                      8: }
                      9: ?>
                     10: --FILE--
                     11: <?php
                     12: $domains = array( 'mx1.tests.php.net', 'mx2.tests.php.net' );
                     13: foreach ( $domains as $domain )
                     14: {
                     15:     if ( getmxrr( $domain, $hosts, $weights ) )
                     16:     {
                     17:         echo "Hosts: " . count( $hosts ) . ", weights: " . count( $weights ) . "\n";
                     18:     }
                     19: }
                     20: ?>
                     21: --EXPECT--
                     22: Hosts: 1, weights: 1
                     23: Hosts: 2, weights: 2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>