1--TEST--
2Test function posix_ttyname() by substituting argument 1 with emptyUnsetUndefNull 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 emptyUnsetUndefNull values ***\n";
14
15
16
17$unset_var = 10;
18unset($unset_var);
19
20$variation_array = array(
21  'unset var' => @$unset_var,
22  'undefined var' => @$undefined_var,
23  'empty string DQ' => "",
24  'empty string SQ' => '',
25  'uppercase NULL' => NULL,
26  'lowercase null' => null,
27  );
28
29
30foreach ( $variation_array as $var ) {
31  var_dump(posix_ttyname( $var  ) );
32}
33?>
34--EXPECT--
35*** Test substituting argument 1 with emptyUnsetUndefNull values ***
36bool(false)
37bool(false)
38bool(false)
39bool(false)
40bool(false)
41bool(false)
42