File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
reflection /
tests /
024.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:00 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
ReflectionObject::__toString (filtering privates/protected dynamic properties)
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
class C1 {
private $p1 = 1;
protected $p2 = 2;
public $p3 = 3;
}
$x = new C1();
$x->z = 4;
$x->p3 = 5;
$obj = new ReflectionObject($x);
echo $obj;
?>
--EXPECTF--
Object of class [ <user> class C1 ] {
@@ %s024.php 2-6
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [3] {
Property [ <default> private $p1 ]
Property [ <default> protected $p2 ]
Property [ <default> public $p3 ]
}
- Dynamic properties [1] {
Property [ <dynamic> public $z ]
}
- Methods [0] {
}
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>