Searched refs:trait_exists (Results 1 – 10 of 10) sorted by relevance
2 Test trait_exists() function : basic functionality5 echo "*** Testing trait_exists() : basic functionality ***\n";14 var_dump( trait_exists('C', true) );16 var_dump( trait_exists('MyTrait', true) );19 var_dump( trait_exists('D', false) );21 var_dump( trait_exists('MyTrait', false) );24 var_dump( trait_exists('E') );26 var_dump( trait_exists('MyTrait') );31 *** Testing trait_exists() : basic functionality ***45 Calling trait_exists() on non-existent trait with autoload unspecified:[all …]
2 Test trait_exists() function : usage variations - case sensitivity6 var_dump(trait_exists('casesensitivitytest'));
14 if (!trait_exists($trait)) {
2 Checking trait_exists(): interface, trait, abstract and final class14 var_dump(trait_exists('a'));15 var_dump(trait_exists('b'));16 var_dump(trait_exists('c'));17 var_dump(trait_exists('d'));
2 Testing trait_exists() inside a namespace13 var_dump(trait_exists('IFoo'));14 var_dump(trait_exists('foo\\IFoo'));15 var_dump(trait_exists('FOO\\ITEST'));
2 Testing trait_exists()9 var_dump(trait_exists('foo'));10 var_dump(trait_exists(1));
16 var_dump(trait_exists('T'));
90 function trait_exists(string $trait, bool $autoload = true): bool {} function
267 ZEND_FUNCTION(trait_exists);329 ZEND_FE(trait_exists, arginfo_trait_exists)
1149 ZEND_FUNCTION(trait_exists) in ZEND_FUNCTION() argument
Completed in 21 milliseconds