summaryrefslogtreecommitdiff
path: root/ext/standard/tests/class_object/get_declared_traits_error_001.phpt
blob: f7a00da0dd6f1adcc973d7d4659f4fc8b60ba994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Test get_declared_traits() function : error conditions 
--FILE--
<?php
/* Prototype  : proto array get_declared_traits()
 * Description: Returns an array of all declared traits. 
 * Source code: Zend/zend_builtin_functions.c
 * Alias to functions: 
 */

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

// One argument
echo "\n-- Testing get_declared_traits() function with one argument --\n";
$extra_arg = 10;;
var_dump( get_declared_traits($extra_arg) );

echo "Done";
?>
--EXPECTF--
*** Testing get_declared_traits() : error conditions ***

-- Testing get_declared_traits() function with one argument --

Warning: get_declared_traits() expects exactly 0 parameters, 1 given in %s on line 13
NULL
Done