Searched refs:is_subclass_of (Results 1 – 14 of 14) sorted by relevance
/PHP-7.3/ext/standard/tests/class_object/ |
H A D | is_a.phpt | 2 is_a and is_subclass_of behaviour (with and without autoload) 21 …echo str_pad('is_subclass_of( OBJECT:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of($t… 22 …echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of(get… 23 …echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.',false) = ', 60). (is_subclass_… 29 …echo str_pad('is_subclass_of( STRING:undefB, '.$sub.',false) = ', 60). (is_subclass_of('undefB', … 30 …echo str_pad('is_subclass_of( STRING:undefB, '.$sub.') = ', 60). (is_subclass_of('undefB', $sub) … 89 is_subclass_of( OBJECT:base, base) = no 90 is_subclass_of( STRING:base, base) = no 91 is_subclass_of( STRING:base, base,false) = no 95 is_subclass_of( STRING:undefB, base,false) = no [all …]
|
H A D | is_subclass_of_error_001.phpt | 2 Test is_subclass_of() function : wrong number of args 5 /* Prototype : proto bool is_subclass_of(object object, string class_name) 11 echo "*** Testing is_subclass_of() : error conditions ***\n"; 14 //Test is_subclass_of with one more than the expected number of arguments 20 var_dump( is_subclass_of($object, $class_name, $allow_string, $extra_arg) ); 22 //Test is_subclass_of with invalid last argument 24 var_dump( is_subclass_of($object, $class_name, $class_name) ); 27 //Test is_subclass_of with invalid last argument 29 var_dump( is_subclass_of($object, $class_name, $object) ); 34 var_dump( is_subclass_of($object) ); [all …]
|
H A D | is_subclass_of_variation_003.phpt | 2 Test is_subclass_of() function : usage variations - case sensitivity 5 /* Prototype : proto bool is_subclass_of(object object, string class_name) 11 echo "*** Testing is_subclass_of() : usage variations ***\n"; 18 var_dump(is_subclass_of('caseSensitivityTestCHILD', 'caseSensitivityTEST')); 23 *** Testing is_subclass_of() : usage variations ***
|
H A D | is_subclass_of_variation_002.phpt | 2 Test is_subclass_of() function : usage variations - unexpected type for arg 2 5 /* Prototype : proto bool is_subclass_of(object object, string class_name) 20 echo "*** Testing is_subclass_of() : usage variations ***\n"; 80 var_dump( is_subclass_of($object, $value) ); 86 *** Testing is_subclass_of() : usage variations *** 119 Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) 124 Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) 129 Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) 134 Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) 139 Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) [all …]
|
H A D | is_subclass_of_variation_001.phpt | 2 Test is_subclass_of() function : usage variations - unexpected type for arg 1 5 /* Prototype : proto bool is_subclass_of(object object, string class_name) 21 echo "*** Testing is_subclass_of() : usage variations ***\n"; 82 var_dump( is_subclass_of($value, $class_name) ); 88 *** Testing is_subclass_of() : usage variations ***
|
H A D | is_subclass_of_variation_004.phpt | 2 Test is_subclass_of() function : usage variations - unexpected type for arg 1 with valid class in … 5 /* Prototype : proto bool is_subclass_of(object object, string class_name) 21 echo "*** Testing is_subclass_of() : usage variations ***\n"; 82 var_dump( is_subclass_of($value, $class_name) ); 88 *** Testing is_subclass_of() : usage variations ***
|
H A D | method_exists_basic_003.phpt | 5 /* Prototype : proto bool is_subclass_of(object object, string class_name)
|
H A D | method_exists_basic_002.phpt | 5 /* Prototype : proto bool is_subclass_of(object object, string class_name)
|
H A D | method_exists_basic_001.phpt | 5 /* Prototype : proto bool is_subclass_of(object object, string class_name)
|
/PHP-7.3/Zend/tests/ |
H A D | class_alias_018.phpt | 2 Testing class alias with is_subclass_of() 15 var_dump(is_subclass_of(new foo, 'foo')); 16 var_dump(is_subclass_of(new foo, 'bar')); 17 var_dump(is_subclass_of(new foo, 'baz')); 19 var_dump(is_subclass_of(new bar, 'foo')); 20 var_dump(is_subclass_of(new bar, 'bar')); 21 var_dump(is_subclass_of(new bar, 'baz')); 23 var_dump(is_subclass_of(new baz, 'foo')); 24 var_dump(is_subclass_of(new baz, 'bar')); 25 var_dump(is_subclass_of(new baz, 'baz'));
|
H A D | is_a.phpt | 2 is_a() and is_subclass_of() shouldn't call __autoload 26 var_dump(is_subclass_of($a, "B2")); 27 var_dump(is_subclass_of($a, "A")); 28 var_dump(is_subclass_of($a, "BASE")); 29 var_dump(is_subclass_of($a, "I")); 31 var_dump(is_subclass_of("X1", "X2"));
|
H A D | bug53727.phpt | 2 Bug #53727 (Inconsistent behavior of is_subclass_of with interfaces) 13 echo (is_subclass_of('ChildClass', 'MyInterface') ? 'true' : 'false') . "\n"; 16 echo (is_subclass_of('ParentClass', 'MyInterface') ? 'true' : 'false') . "\n";
|
/PHP-7.3/tests/classes/ |
H A D | bug24399.phpt | 2 Bug #24399 (is_subclass_of() crashes when parent class doesn't exist) 9 var_dump(is_subclass_of($d, 'dooh'));
|
/PHP-7.3/Zend/ |
H A D | zend_builtin_functions.c | 55 static ZEND_FUNCTION(is_subclass_of); 263 ZEND_FE(is_subclass_of, arginfo_is_subclass_of) 1076 ZEND_FUNCTION(is_subclass_of) in ZEND_FUNCTION() argument
|
Completed in 29 milliseconds