Searched refs:trait_exists (Results 1 – 8 of 8) sorted by relevance
/PHP-7.4/ext/standard/tests/class_object/ |
H A D | trait_exists_basic_001.phpt | 2 Test trait_exists() function : basic functionality 5 /* Prototype : proto bool trait_exists(string traitname [, bool autoload]) 11 echo "*** Testing trait_exists() : basic functionality ***\n"; 20 var_dump( trait_exists('C', true) ); 22 var_dump( trait_exists('MyTrait', true) ); 25 var_dump( trait_exists('D', false) ); 27 var_dump( trait_exists('MyTrait', false) ); 30 var_dump( trait_exists('E') ); 32 var_dump( trait_exists('MyTrait') ); 37 *** Testing trait_exists() : basic functionality *** [all …]
|
H A D | trait_class_exists_variation_003.phpt | 2 Test trait_exists() function : usage variations - case sensitivity 5 /* Prototype : proto bool trait_exists(string traitname [, bool autoload]) 12 var_dump(trait_exists('casesensitivitytest'));
|
H A D | get_declared_traits_basic_001.phpt | 21 if (!trait_exists($trait)) {
|
/PHP-7.4/Zend/tests/ |
H A D | trait_exists_001.phpt | 2 Testing trait_exists() 9 var_dump(trait_exists('foo')); 10 var_dump(trait_exists(1)); 11 var_dump(trait_exists(NULL)); 12 var_dump(trait_exists(new stdClass)); 20 Warning: trait_exists() expects parameter 1 to be string, object given in %s on line %d
|
H A D | trait_exists_003.phpt | 2 Checking trait_exists(): interface, trait, abstract and final class 14 var_dump(trait_exists('a')); 15 var_dump(trait_exists('b')); 16 var_dump(trait_exists('c')); 17 var_dump(trait_exists('d'));
|
H A D | trait_exists_002.phpt | 2 Testing trait_exists() inside a namespace 13 var_dump(trait_exists('IFoo')); 14 var_dump(trait_exists('foo\\IFoo')); 15 var_dump(trait_exists('FOO\\ITEST'));
|
/PHP-7.4/ext/opcache/tests/ |
H A D | preload_009.phpt | 15 var_dump(trait_exists('T'));
|
/PHP-7.4/Zend/ |
H A D | zend_builtin_functions.c | 51 static ZEND_FUNCTION(trait_exists); 263 ZEND_FE(trait_exists, arginfo_trait_exists) 1502 ZEND_FUNCTION(trait_exists) in ZEND_FUNCTION() argument
|
Completed in 17 milliseconds