php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /proc/self/root/opt/php-7.0.1/ext/reflection/tests/ |
| files >> //proc/self/root/opt/php-7.0.1/ext/reflection/tests/ReflectionProperty_isDefault_basic.phpt |
--TEST--
Test ReflectionProperty::isDefault() usage.
--FILE--
<?php
function reflectProperty($class, $property) {
$propInfo = new ReflectionProperty($class, $property);
echo "**********************************\n";
echo "Reflecting on property $class::$property\n\n";
echo "isDefault():\n";
var_dump($propInfo->isDefault());
echo "\n**********************************\n";
}
class TestClass {
public $pub;
static public $stat = "static property";
protected $prot = 4;
private $priv = "keepOut";
}
reflectProperty("TestClass", "pub");
reflectProperty("TestClass", "stat");
reflectProperty("TestClass", "prot");
reflectProperty("TestClass", "priv");
echo "Wrong number of params:\n";
$propInfo = new ReflectionProperty('TestClass', 'pub');
$propInfo->isDefault(1);
?>
--EXPECTF--
**********************************
Reflecting on property TestClass::pub
isDefault():
bool(true)
**********************************
**********************************
Reflecting on property TestClass::stat
isDefault():
bool(true)
**********************************
**********************************
Reflecting on property TestClass::prot
isDefault():
bool(true)
**********************************
**********************************
Reflecting on property TestClass::priv
isDefault():
bool(true)
**********************************
Wrong number of params:
Warning: ReflectionProperty::isDefault() expects exactly 0 parameters, 1 given in %s on line %d
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`