Home
last modified time | relevance | path

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

/PHP-5.5/ext/standard/tests/class_object/
H A Dtrait_exists_basic_001.phpt2 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 Dtrait_exists_error_001.phpt2 Test trait_exists() function : error conditions (wrong number of arguments)
5 /* Prototype : proto bool trait_exists(string traitname [, bool autoload])
15 echo "*** Testing trait_exists() : error conditions ***\n";
18 echo "\n-- Testing trait_exists() function with Zero arguments --\n";
19 var_dump( trait_exists() );
21 //Test trait_exists with one more than the expected number of arguments
26 var_dump( trait_exists($traitname, $autoload, $extra_arg) );
31 *** Testing trait_exists() : error conditions ***
33 -- Testing trait_exists() function with Zero arguments --
35 Warning: trait_exists() expects at least 1 parameter, 0 given in %s on line 16
[all …]
H A Dtrait_exists_variation_001.phpt2 Test trait_exists() function : usage variations - unexpected types for argument 1
5 /* Prototype : proto bool trait_exists(string traitname [, bool autoload])
20 echo "*** Testing trait_exists() : usage variations ***\n";
80 var_dump( trait_exists($value, $autoload) );
86 *** Testing trait_exists() : usage variations ***
123 Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77)
128 Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77)
133 Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77)
138 Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77)
143 Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77)
[all …]
H A Dtrait_exists_variation_002.phpt2 Test trait_exists() function : usage variations - unexpected types for argument 2
5 /* Prototype : proto bool trait_exists(string traitname [, bool autoload])
20 echo "*** Testing trait_exists() : usage variations ***\n";
84 var_dump( trait_exists($traitname, $value) );
90 *** Testing trait_exists() : usage variations ***
131 Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81)
136 Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81)
141 Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81)
146 Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81)
151 Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81)
[all …]
H A Dtrait_class_exists_variation_003.phpt2 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 Dget_declared_traits_basic_001.phpt21 if (!trait_exists($trait)) {
/PHP-5.5/Zend/tests/
H A Dtrait_exists_001.phpt2 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 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'));
/PHP-5.5/Zend/
H A Dzend_builtin_functions.c53 static ZEND_FUNCTION(trait_exists);
264 ZEND_FE(trait_exists, arginfo_trait_exists)
1305 ZEND_FUNCTION(trait_exists) in ZEND_FUNCTION() argument

Completed in 36 milliseconds