1--TEST--
2Test function posix_ttyname() by substituting argument 1 with array 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 array values ***\n";
14
15
16
17$index_array = array(1, 2, 3);
18$assoc_array = array(1 => 'one', 2 => 'two');
19
20$variation_array = array(
21  'empty array' => array(),
22  'int indexed array' => $index_array,
23  'associative array' => $assoc_array,
24  'nested arrays' => array('foo', $index_array, $assoc_array),
25  );
26
27
28foreach ( $variation_array as $var ) {
29  var_dump(posix_ttyname( $var  ) );
30}
31?>
32--EXPECT--
33*** Test substituting argument 1 with array values ***
34bool(false)
35bool(false)
36bool(false)
37bool(false)
38