1--TEST--
2Test function posix_ttyname() by substituting argument 1 with string 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 string values ***\n";
18
19
20
21$heredoc = <<<EOT
22hello world
23EOT;
24
25$variation_array = array(
26  'string DQ' => "string",
27  'string SQ' => 'string',
28  'mixed case string' => "sTrInG",
29  'heredoc' => $heredoc,
30  );
31
32
33foreach ( $variation_array as $var ) {
34  var_dump(posix_ttyname( $var  ) );
35}
36?>
37--EXPECT--
38*** Test substituting argument 1 with string values ***
39bool(false)
40bool(false)
41bool(false)
42bool(false)
43