Home
last modified time | relevance | path

Searched refs:method_exists (Results 1 – 25 of 37) sorted by relevance

12

/PHP-8.2/Zend/tests/
H A Dmethod_exists_002.phpt2 Testing method_exists()
40 var_dump(method_exists('baz', 'stat_a'));
41 var_dump(method_exists('baz', 'stat_b'));
42 var_dump(method_exists('baz', 'stat_c'));
44 var_dump(method_exists('baz', 'stat_a2'));
45 var_dump(method_exists('baz', 'stat_b2'));
46 var_dump(method_exists('baz', 'stat_c2'));
50 var_dump(method_exists($baz, 'method_a'));
54 var_dump(method_exists($baz, 'stat_a'));
55 var_dump(method_exists($baz, 'stat_b'));
[all …]
H A Dbug77627.phpt2 Fix for #77627 method_exists on Closure::__invoke without object returns false
5 var_dump(method_exists(Closure::class, "__invoke"));
6 var_dump(method_exists(Closure::class, "__INVOKE"));
10 var_dump(method_exists($closure, "__INVOKE"));
H A Dmethod_exists.phpt2 method_exists() segfaults
6 var_dump(method_exists('testclass','testfunc'));
7 var_dump(method_exists('testclass','nonfunc'));
H A Dbug32429.phpt2 Bug #32429 (method_exists() always return TRUE if __call method exists)
8 var_dump(method_exists($this, 'test'));
10 if (method_exists($this, 'test')) {
H A Dbug52060.phpt2 Bug #52060 (Memory leak when passing a closure to method_exists())
8 var_dump(method_exists($closure, '__invoke')); // true
H A Dbug76901.phpt2 Bug #76901: method_exists on SPL iterator passthrough method corrupts memory
9 if (method_exists($it, 'offsetGet')) {
H A Dbug50810.phpt26 return method_exists($this, 'foo');
37 var_dump(method_exists($example, 'propertyFooExists'));
/PHP-8.2/ext/standard/tests/class_object/
H A Dmethod_exists_variation_001.phpt2 Test method_exists() function : usage variations - unexpected type for arg 1
14 echo "*** Testing method_exists() : usage variations ***\n";
76 var_dump( method_exists($value, $method) );
85 *** Testing method_exists() : usage variations ***
90 method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given
93 method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given
96 method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given
99 method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given
102 method_exists(): Argument #1 ($object_or_class) must be of type object|string, float given
105 method_exists(): Argument #1 ($object_or_class) must be of type object|string, float given
[all …]
H A Dmethod_exists_variation_003.phpt2 Test method_exists() function : variation - Case sensitivity
5 echo "*** Testing method_exists() : variation ***\n";
11 var_dump(method_exists(new casesensitivitytest, 'myMetHOD'));
12 var_dump(method_exists('casesensiTivitytest', 'myMetHOD'));
17 *** Testing method_exists() : variation ***
H A Dmethod_exists_basic_002.phpt2 method_exists() on internal classes
7 var_dump(method_exists("exception", "getmessage"));
9 var_dump(method_exists("stdclass", "nonexistent"));
13 var_dump(method_exists(new exception, "getmessage"));
15 var_dump(method_exists(new stdclass, "nonexistent"));
H A Dmethod_exists_basic_003.phpt2 method_exists() on non-existent class, with __autoload().
9 var_dump(method_exists('UndefC', 'func'));
H A Dmethod_exists_basic_001.phpt2 method_exists() on userspace classes; static & non-static methods with various visibilities.
34 var_dump(method_exists("C", $method));
41 var_dump(method_exists($myC, $method));
/PHP-8.2/ext/mysqli/tests/
H A Dbug32490.phpt7 var_dump(method_exists("mysqli", "mysqli"));
8 var_dump(method_exists("mysqli", "__construct"));
H A Dbug36802.phpt17 if (method_exists($mysql, 'set_charset')) {
/PHP-8.2/ext/sqlite3/tests/
H A Dsqlite3_34_load_extension_ext_dir.phpt10 if (!method_exists('SQLite3', 'loadExtension')) {
H A Dsqlite3_33_load_extension_param.phpt12 if (!method_exists('SQLite3', 'loadExtension')) {
/PHP-8.2/ext/intl/tests/
H A Dspoofchecker_unknown_restriction_level.phpt9 if (!method_exists(new Spoofchecker(), 'setRestrictionLevel')) print 'skip ICU version < 58';
/PHP-8.2/ext/xmlreader/tests/
H A D011.phpt7 if (!method_exists($reader, 'readInnerXml')) print "skip";
H A Dexpand_error.phpt8 if (!method_exists($reader, 'expand')) print "skip";
H A Dexpand.phpt8 if (!method_exists($reader, 'expand')) print "skip";
H A D013.phpt6 <?php if (!method_exists('XMLReader','setSchema')) die('skip XMLReader::setSchema() not supported')…
/PHP-8.2/ext/zip/tests/
H A Doo_progress.phpt8 if (!method_exists('ZipArchive', 'registerProgressCallback')) die('skip libzip too old');
H A Doo_cancel.phpt8 if (!method_exists('ZipArchive', 'registerCancelCallback')) die('skip libzip too old');
/PHP-8.2/ext/opcache/tests/opt/
H A Dsccp_026.phpt15 if (!is_string($var) || (is_object($var) && !method_exists($var, '__toString'))) {
/PHP-8.2/ext/session/tests/
H A Dgh9583-extra.phpt43 echo 'validateId() ', (method_exists($obj, 'validateId') ? ('returns ' . ($obj->validateId(1) ? 'tr…

Completed in 20 milliseconds

12