1--TEST-- 2Directory class behaviour. 3--FILE-- 4<?php 5/* 6 * Description: Directory class with properties, handle and class and methods read, rewind and close 7 * Class is defined in ext/standard/dir.c 8 */ 9 10echo "Structure of Directory class:\n"; 11$rc = new ReflectionClass("Directory"); 12echo $rc; 13 14?> 15--EXPECT-- 16Structure of Directory class: 17Class [ <internal:standard> final class Directory ] { 18 19 - Constants [0] { 20 } 21 22 - Static properties [0] { 23 } 24 25 - Static methods [0] { 26 } 27 28 - Properties [2] { 29 Property [ public protected(set) readonly string $path ] 30 Property [ public protected(set) readonly mixed $handle ] 31 } 32 33 - Methods [3] { 34 Method [ <internal:standard> public method close ] { 35 36 - Parameters [0] { 37 } 38 - Return [ void ] 39 } 40 41 Method [ <internal:standard> public method rewind ] { 42 43 - Parameters [0] { 44 } 45 - Return [ void ] 46 } 47 48 Method [ <internal:standard> public method read ] { 49 50 - Parameters [0] { 51 } 52 - Return [ string|false ] 53 } 54 } 55} 56