summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/internal_static_property.phpt
blob: 79ba666720a727d4fce0a97fdafc209d4d429389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
ReflectionProperty::get/setValue() on internal static property
--SKIPIF--
<?php
if (!class_exists('_ZendTestClass')) die('skip zend_test extension required');
?>
--FILE--
<?php

$rp = new ReflectionProperty('_ZendTestClass', '_StaticProp');
$rp->setValue(42);
var_dump($rp->getValue());

?>
--EXPECT--
int(42)