mirror of
https://github.com/php/php-src.git
synced 2024-10-04 08:16:11 +00:00
19 lines
298 B
PHP
19 lines
298 B
PHP
--TEST--
|
|
Test ReflectionProperty::export() usage.
|
|
--SKIPIF--
|
|
<?php extension_loaded('reflection') or die('skip'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
class TestClass {
|
|
public $proper = 5;
|
|
}
|
|
|
|
var_dump(ReflectionProperty::export('TestClass', 'proper'));
|
|
|
|
?>
|
|
--EXPECT--
|
|
Property [ <default> public $proper ]
|
|
|
|
NULL
|