Home
last modified time | relevance | path

Searched refs:get_declared_traits (Results 1 – 7 of 7) sorted by relevance

/PHP-5.6/ext/standard/tests/class_object/
H A Dget_declared_traits_error_001.phpt2 Test get_declared_traits() function : error conditions
5 /* Prototype : proto array get_declared_traits()
11 echo "*** Testing get_declared_traits() : error conditions ***\n";
14 echo "\n-- Testing get_declared_traits() function with one argument --\n";
16 var_dump( get_declared_traits($extra_arg) );
21 *** Testing get_declared_traits() : error conditions ***
23 -- Testing get_declared_traits() function with one argument --
25 Warning: get_declared_traits() expects exactly 0 parameters, 1 given in %s on line 13
H A Dget_declared_traits_basic_001.phpt2 Test get_declared_traits() function : basic functionality
5 /* Prototype : proto array get_declared_traits()
12 echo "*** Testing get_declared_traits() : basic functionality ***\n";
17 echo "\n-- Testing get_declared_traits() function with Zero arguments --\n";
18 var_dump(get_declared_traits());
20 foreach (get_declared_traits() as $trait) {
27 var_dump(in_array('MyTrait', get_declared_traits()));
31 var_dump(in_array( 'I', get_declared_traits()));
35 var_dump(in_array( 'MyClass', get_declared_traits()));
41 *** Testing get_declared_traits() : basic functionality ***
[all …]
H A Dget_declared_traits_variation1.phpt2 Test get_declared_traits() function : testing autoloaded traits
5 /* Prototype : proto array get_declared_traits()
12 echo "*** Testing get_declared_traits() : testing autoloaded traits ***\n";
19 var_dump(in_array('AutoTrait', get_declared_traits()));
27 var_dump(in_array('AutoTrait', get_declared_traits()));
33 *** Testing get_declared_traits() : testing autoloaded traits ***
/PHP-5.6/Zend/tests/traits/
H A Dget_declared_traits_001.phpt2 Testing get_declared_traits()
12 var_dump(get_declared_traits());
H A Dget_declared_traits_002.phpt2 Testing get_declared_traits() inside namespace
12 var_dump(get_declared_traits());
H A Dget_declared_traits_003.phpt2 Testing get_declared_classes() and get_declared_traits()
12 var_dump(get_declared_traits());
/PHP-5.6/Zend/
H A Dzend_builtin_functions.c75 static ZEND_FUNCTION(get_declared_traits);
288 ZEND_FE(get_declared_traits, arginfo_zend__void)
1673 ZEND_FUNCTION(get_declared_traits) in ZEND_FUNCTION() argument

Completed in 18 milliseconds