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--EXTENSIONS-- 8posix 9--FILE-- 10<?php 11 12 13echo "*** Test substituting argument 1 with boolean values ***\n"; 14 15 16 17$variation_array = array( 18 'lowercase true' => true, 19 'lowercase false' =>false, 20 'uppercase TRUE' =>TRUE, 21 'uppercase FALSE' =>FALSE, 22 ); 23 24 25foreach ( $variation_array as $var ) { 26 var_dump(posix_ttyname( $var ) ); 27} 28?> 29--EXPECT-- 30*** Test substituting argument 1 with boolean values *** 31bool(false) 32bool(false) 33bool(false) 34bool(false) 35