Labels

Milestone

Assignee

3 participants

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.

This came up as I was attempting to Mock the MongoCollection::aggregate() 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.

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

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