sebastianbergmann/phpunit — pull request #642 by jmikola (2012-09-10 16:18:03+00:00)
Title: Handle reflected param names for variable length arguments

The existing code handled cases where a PHP extension declared an argument for the reflection API without providing a name (typically done for referenced arguments). Also handle the case where the name it provides is "..." (i.e. variable arguments), as that would break mock object generation.

See: http://php.net/manual/en/language.pseudo-types.php

----

This came up as I was attempting to Mock the [MongoCollection::aggregate()](http://php.net/manual/en/mongocollection.aggregate.php) method, which uses the convention for defining variable length arguments. I'm aware the docs currently use `$..` as the name instead of the `$...` convention -- that was an oversight, which is being changed.