Home
last modified time | relevance | path

Searched refs:className (Results 1 – 25 of 28) sorted by relevance

12

/PHP-7.2/Zend/tests/varSyntax/
H A DnewVariable.phpt6 $className = 'stdClass';
7 $array = ['className' => 'stdClass'];
8 $obj = (object) ['className' => 'stdClass'];
11 public static $className = 'stdClass';
16 var_dump(new $className);
17 var_dump(new $array['className']);
18 var_dump(new $array{'className'});
19 var_dump(new $obj->className);
20 var_dump(new Test::$className);
21 var_dump(new $test::$className);
[all …]
/PHP-7.2/scripts/dev/generate-phpt/src/
H A DgtMethod.php8 private $className; variable in gtMethod
19 * @param string $className
22 public function __construct($className, $methodName) { argument
23 $this->className = $className;
33 $reflectionClass = new ReflectionClass($this->className);
49 $methodClass = new reflectionMethod($this->className, $this->methodName);
88 return $this->className;
/PHP-7.2/Zend/tests/
H A Dlsb_010.phpt7 protected static $className = 'Foo';
9 echo static::$className . "::bar\n";
12 echo static::$className . "::__construct\n";
15 echo static::$className . "::__destruct\n";
20 protected static $className = 'FooChild';
H A Dbug49908.phpt6 spl_autoload_register(function ($className) {
7 var_dump($className);
9 if ($className == 'Foo') {
12 throw new Exception($className);
H A Dbug42798.phpt5 spl_autoload_register(function ($className) {
6 print "$className\n";
/PHP-7.2/ext/spl/tests/
H A Dspl_autoload_005.phpt10 function autoLoad($className)
12 echo __METHOD__ . "($className)\n";
15 function autoThrow($className)
17 echo __METHOD__ . "($className)\n";
H A Dspl_autoload_008.phpt8 function MyAutoLoad($className)
10 echo __METHOD__ . "($className)\n";
16 static function autoLoad($className)
18 echo __METHOD__ . "($className)\n";
22 function dynaLoad($className)
24 echo __METHOD__ . "($className)\n";
H A Dspl_autoload_007.phpt10 static protected function noAccess($className) {
11 echo __METHOD__ . "($className)\n";
14 static function autoLoad($className) {
15 echo __METHOD__ . "($className)\n";
18 function dynaLoad($className) {
19 echo __METHOD__ . "($className)\n";
H A Dspl_autoload_006.phpt10 static function autoLoad($className) {
11 echo __METHOD__ . "($className)\n";
H A Dspl_autoload_004.phpt10 static function autoLoad($className) {
11 echo __METHOD__ . "($className)\n";
/PHP-7.2/scripts/dev/generate-phpt/src/setup/preconditions/
H A DgtIsValidClass.php11 $className = $clo->getOption('c');
12 if( in_array( $className, get_declared_classes() ) ) {
H A DgtIsValidMethod.php11 $className = $clo->getOption('c');
12 $class = new ReflectionClass($className);
/PHP-7.2/ext/reflection/tests/
H A DReflectionObject_isSubclassOf_basic.phpt15 foreach ($classNames as $className) {
16 $rcs[$className] = new ReflectionClass($className);
20 foreach ($classNames as $className) {
21 if ($rcs[$className]->isInstantiable()) {
22 $ros[$className] = new ReflectionObject(new $className);
H A DReflectionClass_isSubclassOf_basic.phpt14 foreach ($classNames as $className) {
15 $rcs[$className] = new ReflectionClass($className);
H A DReflectionClass_implementsInterface_001.phpt17 foreach ($classNames as $className) {
18 $rcs[$className] = new ReflectionClass($className);
/PHP-7.2/ext/xsl/tests/
H A Dbug33853.phpt8 spl_autoload_register(function ($className) {
9 var_dump($className);
/PHP-7.2/tests/lang/
H A DforeachLoopIteratorAggregate.002.phpt31 function f($className) {
33 foreach (new $className as $k=>$v) {
/PHP-7.2/ext/standard/tests/class_object/
H A Dclass_exists_basic_001.phpt13 spl_autoload_register(function ($className) {
14 echo "In autoload($className)\n";
H A Dget_parent_class_variation_002.phpt11 spl_autoload_register(function ($className) {
12 echo "In autoload($className)\n";
H A Dis_subclass_of_variation_001.phpt11 spl_autoload_register(function ($className) {
12 echo "In autoload($className)\n";
H A Dmethod_exists_variation_001.phpt11 spl_autoload_register(function ($className) {
12 echo "In autoload($className)\n";
H A Dis_subclass_of_variation_004.phpt11 spl_autoload_register(function ($className) {
12 echo "In autoload($className)\n";
H A Dclass_exists_variation_001.phpt11 spl_autoload_register(function ($className) {
12 echo "In autoload($className)\n";
H A Dis_subclass_of_variation_002.phpt11 spl_autoload_register(function ($className) {
12 echo "In autoload($className)\n";
H A Dmethod_exists_variation_002.phpt11 spl_autoload_register(function ($className) {
12 echo "In autoload($className)\n";

Completed in 23 milliseconds

12