Searched refs:is_subclass_of (Results 1 – 15 of 15) sorted by relevance
/PHP-5.5/ext/standard/tests/class_object/ |
H A D | is_a.phpt | 2 is_a and is_subclass_of behaviour (with and without autoload) 23 …echo str_pad('is_subclass_of( OBJECT:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of($t… 24 …echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of(get… 25 …echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.',false) = ', 60). (is_subclass_… 31 …echo str_pad('is_subclass_of( STRING:undefB, '.$sub.',false) = ', 60). (is_subclass_of('undefB', … 32 …echo str_pad('is_subclass_of( STRING:undefB, '.$sub.') = ', 60). (is_subclass_of('undefB', $sub) … 94 is_subclass_of( OBJECT:base, base) = no 95 is_subclass_of( STRING:base, base) = no 96 is_subclass_of( STRING:base, base,false) = no 100 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-5.5/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, "INT")); 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-5.5/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-5.5/Zend/ |
H A D | zend_builtin_functions.c | 64 static ZEND_FUNCTION(is_subclass_of); 276 ZEND_FE(is_subclass_of, arginfo_is_subclass_of) 887 ZEND_FUNCTION(is_subclass_of) in ZEND_FUNCTION() argument
|
/PHP-5.5/ |
H A D | NEWS | 3811 is_a and is_subclass_of). (alan_k) 4069 . Removed warning when argument of is_a() or is_subclass_of() is not 4119 . Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces) 7292 - Fixed bug #42009 (is_a() and is_subclass_of() should NOT call autoload, in the 9171 - Changed "instanceof" and "catch" operators, is_a() and is_subclass_of() 9963 - Extended the functionality of is_subclass_of() to accept either a class name
|
Completed in 54 milliseconds