mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
27 lines
755 B
Plaintext
27 lines
755 B
Plaintext
|
--TEST--
|
||
|
Test get_declared_interfaces() function : error conditions
|
||
|
--FILE--
|
||
|
<?php
|
||
|
/* Prototype : proto array get_declared_interfaces()
|
||
|
* Description: Returns an array of all declared interfaces.
|
||
|
* Source code: Zend/zend_builtin_functions.c
|
||
|
* Alias to functions:
|
||
|
*/
|
||
|
|
||
|
echo "*** Testing get_declared_interfaces() : error conditions ***\n";
|
||
|
|
||
|
// One argument
|
||
|
echo "\n-- Testing get_declared_interfaces() function with one argument --\n";
|
||
|
$extra_arg = 10;;
|
||
|
var_dump( get_declared_interfaces($extra_arg) );
|
||
|
|
||
|
echo "Done";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
*** Testing get_declared_interfaces() : error conditions ***
|
||
|
|
||
|
-- Testing get_declared_interfaces() function with one argument --
|
||
|
|
||
|
Warning: Wrong parameter count for get_declared_interfaces() in %s on line 13
|
||
|
NULL
|
||
|
Done
|