Annotation of embedaddon/php/ext/standard/tests/general_functions/getservbyname_variation2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test function getservbyname() by substituting argument 1 with boolean values.
! 3: --FILE--
! 4: <?php
! 5:
! 6:
! 7: echo "*** Test substituting argument 1 with boolean values ***\n";
! 8:
! 9: $protocol = "tcp";
! 10:
! 11:
! 12: $variation_array = array(
! 13: 'lowercase true' => true,
! 14: 'lowercase false' =>false,
! 15: 'uppercase TRUE' =>TRUE,
! 16: 'uppercase FALSE' =>FALSE,
! 17: );
! 18:
! 19:
! 20: foreach ( $variation_array as $var ) {
! 21: var_dump(getservbyname( $var , $protocol ) );
! 22: }
! 23: ?>
! 24: --EXPECTF--
! 25: *** Test substituting argument 1 with boolean values ***
! 26: bool(false)
! 27: bool(false)
! 28: bool(false)
! 29: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>