xref: /PHP-5.5/ext/posix/tests/posix_ctermid.phpt (revision 8d86597d)
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--SKIPIF--
10<?php
11	if (!extension_loaded('posix')) {
12        die('SKIP - POSIX extension not available');
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===DONE===
24--EXPECTF--
25string(%d) "%s"
26===DONE===
27