Your IP : 216.73.216.48


Current Path : /hdd/hdd12/install/php/php-7.4.32/ext/reflection/tests/
Upload File :
Current File : //hdd/hdd12/install/php/php-7.4.32/ext/reflection/tests/ReflectionClass_export_basic2.phpt

--TEST--
ReflectionClass::__toString() - ensure inherited private props are hidden.
--FILE--
<?php
Class c {
	private $a;
	static private $b;
}

class d extends c {}

echo new ReflectionClass("c"), "\n";
echo new ReflectionClass("d"), "\n";
?>
--EXPECTF--
Class [ <user> class c ] {
  @@ %s 2-5

  - Constants [0] {
  }

  - Static properties [1] {
    Property [ private static $b ]
  }

  - Static methods [0] {
  }

  - Properties [1] {
    Property [ <default> private $a ]
  }

  - Methods [0] {
  }
}

Class [ <user> class d extends c ] {
  @@ %s 7-7

  - Constants [0] {
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [0] {
  }

  - Methods [0] {
  }
}