File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / get_defined_functions_error.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (12 years, 4 months 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, v5_3_10, HEAD
php

--TEST--
Test get_defined_functions() function : error conditions 
--FILE--
<?php

/* Prototype  : array get_defined_functions  ( void  )
 * Description: Gets an array of all defined functions.
 * Source code: Zend/zend_builtin_functions.c
*/


echo "*** Testing get_defined_functions() : error conditions ***\n";


echo "\n-- Testing get_defined_functions() function with more than expected no. of arguments --\n";
$extra_arg = 10;
var_dump( get_defined_functions($extra_arg) );

?> 
===Done===
--EXPECTF--
*** Testing get_defined_functions() : error conditions ***

-- Testing get_defined_functions() function with more than expected no. of arguments --

Warning: get_defined_functions() expects exactly 0 parameters, 1 given in %s on line %d
NULL
 
===Done===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>