1--TEST-- 2Test function posix_ttyname() by substituting argument 1 with boolean values. 3--CREDITS-- 4Marco Fabbri mrfabbri@gmail.com 5Francesco Fullone ff@ideato.it 6#PHPTestFest Cesena Italia on 2009-06-20 7--SKIPIF-- 8<?php 9if (!extension_loaded('posix')) { 10 die('SKIP The posix extension is not loaded.'); 11} 12?> 13--FILE-- 14<?php 15 16 17echo "*** Test substituting argument 1 with boolean values ***\n"; 18 19 20 21$variation_array = array( 22 'lowercase true' => true, 23 'lowercase false' =>false, 24 'uppercase TRUE' =>TRUE, 25 'uppercase FALSE' =>FALSE, 26 ); 27 28 29foreach ( $variation_array as $var ) { 30 var_dump(posix_ttyname( $var ) ); 31} 32?> 33--EXPECT-- 34*** Test substituting argument 1 with boolean values *** 35bool(false) 36bool(false) 37bool(false) 38bool(false) 39