/PHP-5.6/ext/standard/tests/class_object/ |
H A D | class_exists_basic_001.phpt | 2 Test class_exists() function : basic functionality 5 /* Prototype : proto bool class_exists(string classname [, bool autoload]) 11 echo "*** Testing class_exists() : basic functionality ***\n"; 18 var_dump( class_exists('C', true) ); 20 var_dump( class_exists('stdclass', true) ); 23 var_dump( class_exists('D', false) ); 25 var_dump( class_exists('stdclass', false) ); 28 var_dump( class_exists('E') ); 30 var_dump( class_exists('stdclass') ); 35 *** Testing class_exists() : basic functionality *** [all …]
|
H A D | class_exists_error_001.phpt | 2 Test class_exists() function : error conditions (wrong number of arguments) 5 /* Prototype : proto bool class_exists(string classname [, bool autoload]) 15 echo "*** Testing class_exists() : error conditions ***\n"; 18 echo "\n-- Testing class_exists() function with Zero arguments --\n"; 19 var_dump( class_exists() ); 21 //Test class_exists with one more than the expected number of arguments 26 var_dump( class_exists($classname, $autoload, $extra_arg) ); 31 *** Testing class_exists() : error conditions *** 33 -- Testing class_exists() function with Zero arguments -- 35 Warning: class_exists() expects at least 1 parameter, 0 given in %s on line 16 [all …]
|
H A D | class_exists_variation_001.phpt | 2 Test class_exists() function : usage variations - unexpected types for argument 1 5 /* Prototype : proto bool class_exists(string classname [, bool autoload]) 20 echo "*** Testing class_exists() : usage variations ***\n"; 80 var_dump( class_exists($value, $autoload) ); 86 *** Testing class_exists() : usage variations *** 123 Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) 128 Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) 133 Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) 138 Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) 143 Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) [all …]
|
H A D | class_exists_variation_002.phpt | 2 Test class_exists() function : usage variations - unexpected types for argument 2 5 /* Prototype : proto bool class_exists(string classname [, bool autoload]) 20 echo "*** Testing class_exists() : usage variations ***\n"; 84 var_dump( class_exists($classname, $value) ); 90 *** Testing class_exists() : usage variations *** 131 Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) 136 Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) 141 Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) 146 Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) 151 Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) [all …]
|
H A D | class_exists_variation_003.phpt | 2 Test class_exists() function : usage variations - case sensitivity 5 /* Prototype : proto bool class_exists(string classname [, bool autoload]) 12 var_dump(class_exists('casesensitivitytest'));
|
/PHP-5.6/Zend/tests/ |
H A D | 012.phpt | 2 class_exists() tests 9 var_dump(class_exists()); 10 var_dump(class_exists("qwerty")); 11 var_dump(class_exists("")); 12 var_dump(class_exists(array())); 13 var_dump(class_exists("test", false)); 14 var_dump(class_exists("foo", false)); 15 var_dump(class_exists("foo")); 16 var_dump(class_exists("stdClass", false)); 17 var_dump(class_exists("stdClass")); [all …]
|
H A D | class_exists_002.phpt | 10 var_dump(class_exists('')); 11 var_dump(class_exists(NULL)); 12 var_dump(class_exists('FOO')); 13 var_dump(class_exists('bar')); 14 var_dump(class_exists(1)); 15 var_dump(class_exists(new stdClass)); 25 Warning: class_exists() expects parameter 1 to be string, object given in %s on line %d
|
H A D | class_exists_001.phpt | 2 Testing class_exists() inside namespace 15 var_dump(class_exists('\bar')); 16 var_dump(class_exists('bar')); 17 var_dump(class_exists('foo\bar')); 18 var_dump(class_exists('foo\foo')); 19 var_dump(class_exists('foo'));
|
H A D | class_exists_003.phpt | 14 var_dump(class_exists('a')); 15 var_dump(class_exists('b')); 16 var_dump(class_exists('c')); 17 var_dump(class_exists('d'));
|
H A D | bug46813.phpt | 2 Bug #46813: class_exists doesn`t work with fully qualified namespace 16 var_dump(class_exists('\test\inner', true)); 18 var_dump(class_exists('\test\inner', true));
|
H A D | bug26697.phpt | 2 Bug #26697 (calling class_exists on a nonexistent class in __autoload results in segfault) 11 var_dump(class_exists('NotExistingClass')); 15 var_dump(class_exists('NotExistingClass'));
|
/PHP-5.6/tests/classes/ |
H A D | autoload_005.phpt | 6 if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); 13 var_dump(class_exists($class_name, false)); 18 var_dump(class_exists('autoload_derived', false)); 19 var_dump(class_exists('autoload_derived', false));
|
H A D | autoload_001.phpt | 2 ZE2 Autoload and class_exists 6 if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); 17 var_dump(class_exists('autoload_root'));
|
H A D | autoload_004.phpt | 6 if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); 13 var_dump(class_exists($class_name)); 18 var_dump(class_exists('autoload_derived'));
|
H A D | autoload_006.phpt | 6 if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); 18 var_dump(class_exists('autoload_implements', false)); 26 var_dump(class_exists('autoload_implements', false));
|
H A D | autoload_019.phpt | 8 class_exists("undefinedCLASS"); 11 class_exists("unDefinedClass");
|
H A D | autoload_003.phpt | 6 if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); 17 var_dump(class_exists('autoload_derived'));
|
H A D | autoload_018.phpt | 15 class_exists('UndefinedClass' . $i); 20 var_dump(class_exists('UndefinedClass0'));
|
/PHP-5.6/ext/spl/examples/ |
H A D | tree.php | 31 if (!class_exists("DirectoryTreeIterator", false)) require_once("directorytreeiterator.inc"); 32 if (!class_exists("DirectoryGraphIterator", false)) require_once("directorygraphiterator.inc");
|
H A D | ini_groups.php | 29 if (!class_exists("KeyFilter", false)) require_once("keyfilter.inc"); 30 if (!class_exists("IniGroups", false)) require_once("inigroups.inc");
|
H A D | dba_dump.php | 29 if (!class_exists("DbaReader", false)) require_once("dbareader.inc"); 30 if (!class_exists("KeyFilter", false)) require_once("keyfilter.inc");
|
/PHP-5.6/ext/spl/tests/ |
H A D | spl_autoload_012.phpt | 22 class_exists('ThisClassDoesNotExist'); 37 class_exists('ThisClassDoesNotExist'); 56 #2 %sspl_autoload_012.php(%d): class_exists('ThisClassDoesNo...') 63 #2 %sspl_autoload_012.php(%d): class_exists('ThisClassDoesNo...')
|
/PHP-5.6/ext/standard/tests/serialize/ |
H A D | bug30234.phpt | 5 if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); 17 var_dump(class_exists('autoload_implements', false)); 26 var_dump(class_exists('autoload_implements', false));
|
/PHP-5.6/ext/phar/phar/ |
H A D | phar.php | 15 if (!class_exists('PHP_Archive', 0)) { 22 if (!class_exists('Phar',0)) {
|
/PHP-5.6/ext/pdo/tests/ |
H A D | pdo_031.phpt | 10 if (!class_exists('RecursiveArrayIterator', false)) die('skip Class RecursiveArrayIterator missing'… 11 if (!class_exists('RecursiveTreeIterator', false) && !file_exists(getenv('REDIR_TEST_DIR').'../../s… 18 if (!class_exists('RecursiveTreeIterator', false)) require_once(getenv('REDIR_TEST_DIR').'../../spl…
|