Home
last modified time | relevance | path

Searched refs:trait_exists (Results 1 – 10 of 10) sorted by relevance

/PHP-8.1/ext/standard/tests/class_object/
H A Dtrait_exists_basic_001.phpt2 Test trait_exists() function : basic functionality
5 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 …]
H A Dtrait_class_exists_variation_003.phpt2 Test trait_exists() function : usage variations - case sensitivity
6 var_dump(trait_exists('casesensitivitytest'));
H A Dget_declared_traits_basic_001.phpt14 if (!trait_exists($trait)) {
/PHP-8.1/Zend/tests/
H A Dtrait_exists_003.phpt2 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 Dtrait_exists_002.phpt2 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'));
H A Dtrait_exists_001.phpt2 Testing trait_exists()
9 var_dump(trait_exists('foo'));
10 var_dump(trait_exists(1));
/PHP-8.1/ext/opcache/tests/
H A Dpreload_009.phpt16 var_dump(trait_exists('T'));
/PHP-8.1/Zend/
H A Dzend_builtin_functions.stub.php73 function trait_exists(string $trait, bool $autoload = true): bool {} function
H A Dzend_builtin_functions_arginfo.h245 ZEND_FUNCTION(trait_exists);
306 ZEND_FE(trait_exists, arginfo_trait_exists)
H A Dzend_builtin_functions.c1016 ZEND_FUNCTION(trait_exists) in ZEND_FUNCTION() argument

Completed in 18 milliseconds