1--TEST--
2ReflectionParameter::__toString()
3--CREDITS--
4Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
5--FILE--
6<?php
7function ReflectionParameterTest($test, $test2 = null, ...$test3) {
8    echo $test;
9}
10$reflect = new ReflectionFunction('ReflectionParameterTest');
11$params = $reflect->getParameters();
12foreach($params as $key => $value) {
13    echo $value->__toString() . "\n";
14}
15?>
16--EXPECT--
17Parameter #0 [ <required> $test ]
18Parameter #1 [ <optional> $test2 = NULL ]
19Parameter #2 [ <optional> ...$test3 ]
20