xref: /php-src/ext/posix/tests/posix_ctermid.phpt (revision 74859783)
1--TEST--
2Test posix_ctermid()
3--DESCRIPTION--
4Gets path name of controlling terminal.
5Source code: ext/posix/posix.c
6--CREDITS--
7Falko Menge, mail at falko-menge dot de
8PHP Testfest Berlin 2009-05-10
9--EXTENSIONS--
10posix
11--SKIPIF--
12<?php
13
14    // needed because of #ifdef HAVE_CTERMID in posix.c
15    if (!function_exists('posix_ctermid')) {
16        die('SKIP - Function posix_ctermid() not available');
17    }
18?>
19--FILE--
20<?php
21    var_dump(posix_ctermid());
22?>
23--EXPECTF--
24string(%d) "%s"
25