1--TEST--
2ReflectionParameter::__toString() should display default values for internal functions as well
3--FILE--
4<?php
5$class = new ReflectionClass('DateTime');
6$method = $class->getMethod('setTime');
7
8foreach ($method->getParameters() as $k => $parameter) {
9    echo $parameter . "\n";
10}
11
12echo "----------\n";
13
14$class = new ReflectionClass('DateTimeZone');
15$method = $class->getMethod('listIdentifiers');
16
17foreach ($method->getParameters() as $parameter) {
18    echo $parameter . "\n";
19}
20?>
21--EXPECT--
22Parameter #0 [ <required> int $hour ]
23Parameter #1 [ <required> int $minute ]
24Parameter #2 [ <optional> int $second = 0 ]
25Parameter #3 [ <optional> int $microsecond = 0 ]
26----------
27Parameter #0 [ <optional> int $timezoneGroup = DateTimeZone::ALL ]
28Parameter #1 [ <optional> ?string $countryCode = null ]
29