File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
general_functions /
proc_nice_error.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:44 2012 UTC (12 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
--TEST--
Test function proc_nice() by calling it more than or less than its expected arguments
--SKIPIF--
<?php
if(!function_exists('proc_nice')) die("skip. proc_nice not available ");
?>
--FILE--
<?php
echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
$priority = 1;
$extra_arg = 1;
var_dump(proc_nice( $priority, $extra_arg) );
var_dump(proc_nice( ) );
?>
--EXPECTF--
*** Test by calling method or function with incorrect numbers of arguments ***
Warning: proc_nice() expects exactly 1 parameter, 2 given in %s line %d
bool(false)
Warning: proc_nice() expects exactly 1 parameter, 0 given in %s line %d
bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>