Home
last modified time | relevance | path

Searched refs:is_a (Results 1 – 13 of 13) sorted by relevance

/PHP-7.0/tests/classes/
H A Dinterface_implemented.phpt65 is_a(base, base) = yes
66 is_a(base, derived_a) = no
67 is_a(base, derived_b) = no
68 is_a(base, derived_c) = no
69 is_a(base, derived_d) = no
70 is_a(base, if_a) = no
71 is_a(base, if_b) = no
73 is_a(derived_a, base) = yes
78 is_a(derived_a, if_a) = yes
79 is_a(derived_a, if_b) = no
[all …]
H A Dinterface_doubled.phpt161 is_a(class_a, if_b) no
162 is_a(class_a, if_c) no
163 is_a(class_a, if_d) no
164 is_a(class_a, if_e) no
168 is_a(class_b, if_c) no
169 is_a(class_b, if_d) no
170 is_a(class_b, if_e) no
175 is_a(class_c, if_d) no
176 is_a(class_c, if_e) no
180 is_a(class_d, if_c) no
[all …]
/PHP-7.0/ext/standard/tests/class_object/
H A Dis_a.phpt2 is_a and is_subclass_of behaviour (with and without autoload)
20 …echo str_pad('is_a( OBJECT:'.get_class($this).', '.$sub.') = ', 60) . (is_a($this, $sub) ? 'yes' :…
21 …echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_a(get_class($this), $sub)…
22 …echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.', true) = ', 60). (is_a(get_class($this),…
29 …echo str_pad('is_a( STRING:undefB, '.$sub.',true) = ', 60). (is_a('undefB', $sub, true) ? 'yes' :…
30 …echo str_pad('is_a( STRING:undefB, '.$sub.') = ', 60). (is_a('undefB', $sub) ? 'yes' : 'no')."\n";
92 is_a( STRING:base, base) = no
98 is_a( STRING:undefB, base,true) = no
99 is_a( STRING:undefB, base) = no
104 is_a( OBJECT:base, derived_a) = no
[all …]
H A Dis_a_error_001.phpt2 Test is_a() function : error conditions - wrong number of args
13 echo "*** Testing is_a() : error conditions ***\n";
15 //Test is_a with one more than the expected number of arguments
22 var_dump( is_a($object, $class_name, $allow_string, $object) );
24 //Test is_a with one more than the expected number of arguments
26 var_dump( is_a($object, $class_name, $object) );
29 // Testing is_a with one less than the expected number of arguments
32 var_dump( is_a($object) );
38 *** Testing is_a() : error conditions ***
40 -- Testing is_a() function with more than expected no. of arguments --
[all …]
H A Dis_a_variation_003.phpt2 Test is_a() function : usage variations - case sensitivity
7 /* Prototype : proto bool is_a(object object, string class_name)
13 echo "*** Testing is_a() : usage variations ***\n";
18 var_dump(is_a(new caseSensitivityTestChild, 'caseSensitivityTEST'));
23 *** Testing is_a() : usage variations ***
H A Dis_a_variation_002.phpt2 Test is_a() function : usage variations - wrong type for arg 2
7 /* Prototype : proto bool is_a(object object, string class_name)
19 echo "*** Testing is_a() : usage variations ***\n";
79 var_dump( is_a($object, $value) );
85 *** Testing is_a() : usage variations ***
120 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
125 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
130 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
135 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
140 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
H A Dis_a_variation_001.phpt2 Test is_a() function : usage variations - wrong type for arg 1
7 /* Prototype : proto bool is_a(object object, string class_name)
12 // Note: basic use cases in Zend/tests/is_a.phpt
13 echo "*** Testing is_a() : usage variations ***\n";
74 var_dump( is_a($value, $class_name) );
80 *** Testing is_a() : usage variations ***
H A Dis_subclass_of_variation_003.phpt13 echo "*** Testing is_a() : usage variations ***\n";
24 *** Testing is_a() : usage variations ***
H A Dis_subclass_of_variation_001.phpt10 // Note: basic use cases in Zend/tests/is_a.phpt
H A Dis_subclass_of_variation_004.phpt10 // Note: basic use cases in Zend/tests/is_a.phpt
/PHP-7.0/Zend/tests/
H A Dis_a.phpt2 is_a() and is_subclass_of() shouldn't call __autoload
22 var_dump(is_a($a, "B1"));
23 var_dump(is_a($a, "A"));
24 var_dump(is_a($a, "BASE"));
25 var_dump(is_a($a, "I"));
H A Dclosure_020.phpt13 var_dump(is_a($this->a, 'closure'));
/PHP-7.0/Zend/
H A Dzend_builtin_functions.c70 static ZEND_FUNCTION(is_a);
310 ZEND_FE(is_a, arginfo_is_subclass_of)
1059 ZEND_FUNCTION(is_a) in ZEND_FUNCTION() argument

Completed in 27 milliseconds