Annotation of embedaddon/php/ext/standard/tests/general_functions/php_uname_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test php_uname() function - basic test
3: --FILE--
4: <?php
5: /* Prototype: string php_uname ([ string $mode ] )
6: * Description: Returns information about the operating system PHP is running on
7: */
8:
9: echo "*** Testing php_uname() - basic test\n";
10:
11: var_dump(php_uname());
12:
13: echo "\n-- Try all the defined mode's --\n";
14:
15: var_dump(php_uname('a'));
16: var_dump(php_uname('s'));
17: var_dump(php_uname('n'));
18: var_dump(php_uname('r'));
19: var_dump(php_uname('v'));
20: var_dump(php_uname('m'));
21:
22: ?>
23: ===DONE===
24: --EXPECTF--
25: *** Testing php_uname() - basic test
26: string(%d) "%s"
27:
28: -- Try all the defined mode's --
29: string(%d) "%s"
30: string(%d) "%s"
31: string(%d) "%s"
32: string(%d) "%s"
33: string(%d) "%s"
34: string(%d) "%s"
35: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>