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