posix_ttyname_variation5.phpt 561 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Test function posix_ttyname() by substituting argument 1 with int values.
  3. --CREDITS--
  4. Marco Fabbri mrfabbri@gmail.com
  5. Francesco Fullone ff@ideato.it
  6. #PHPTestFest Cesena Italia on 2009-06-20
  7. --EXTENSIONS--
  8. posix
  9. --FILE--
  10. <?php
  11. echo "*** Test substituting argument 1 with int values ***\n";
  12. $variation_array = array (
  13. 'int 12345' => 12345,
  14. 'int -12345' => -2345,
  15. );
  16. foreach ( $variation_array as $var ) {
  17. var_dump(posix_ttyname( $var ) );
  18. }
  19. ?>
  20. --EXPECT--
  21. *** Test substituting argument 1 with int values ***
  22. bool(false)
  23. bool(false)