1--TEST-- 2Test function posix_ttyname() by substituting argument 1 with float 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 float values ***\n"; 18 19 20 21$variation_array = array( 22 'float 10.5' => 10.5, 23 'float -10.5' => -10.5, 24 'float 12.3456789000e10' => 12.3456789000e10, 25 'float -12.3456789000e10' => -12.3456789000e10, 26 'float .5' => .5, 27 ); 28 29 30foreach ( $variation_array as $var ) { 31 var_dump(posix_ttyname( $var ) ); 32} 33?> 34--EXPECTF-- 35*** Test substituting argument 1 with float values *** 36bool(false) 37bool(false) 38bool(false) 39bool(false) 40bool(false) 41