summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/php_uname_error.phpt
blob: ec5b2b5839d163d8b6e348f90652b18721b59bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Test php_uname() function -  error conditions - pass function incorrect arguments
--FILE--
<?php
/* Prototype: string php_uname  ([ string $mode  ] )
 * Description:  Returns information about the operating system PHP is running on
*/

echo "*** Testing php_uname() - error test\n";

echo "\n-- Testing php_uname() function with invalid mode --\n";
// am invalid mode should result in same o/p as mode 'a'
var_dump( php_uname('z') == php_uname('z') );

?>
===DONE===
--EXPECTF--
*** Testing php_uname() - error test

-- Testing php_uname() function with invalid mode --
bool(true)
===DONE===