Annotation of embedaddon/php/ext/posix/tests/posix_ttyname_variation4.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test function posix_ttyname() by substituting argument 1 with float values.
! 3: --CREDITS--
! 4: Marco Fabbri mrfabbri@gmail.com
! 5: Francesco Fullone ff@ideato.it
! 6: #PHPTestFest Cesena Italia on 2009-06-20
! 7: --SKIPIF--
! 8: <?php
! 9: if (!extension_loaded('posix')) {
! 10: die('SKIP The posix extension is not loaded.');
! 11: }
! 12: ?>
! 13: --FILE--
! 14: <?php
! 15:
! 16:
! 17: echo "*** 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:
! 30: foreach ( $variation_array as $var ) {
! 31: var_dump(posix_ttyname( $var ) );
! 32: }
! 33: ?>
! 34: --EXPECTF--
! 35: *** Test substituting argument 1 with float values ***
! 36: bool(false)
! 37: bool(false)
! 38: bool(false)
! 39: bool(false)
! 40: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>