-
Notifications
You must be signed in to change notification settings - Fork 242
Open
Description
I really would love to integrate my php-mock
with prophecy so that you could write prophecies about built-in PHP functions. This works already great, unless you want to use pass-by-reference (e.g. exec()
).
You do obviously care about references in ClassCodeGenerator::generateArguments()
. But they get lost on the further track. ProphecySubjectPatch::apply()
uses func_get_args()
which unfortunately doesn't preserve references:
$method->setCode(
'return $this->getProphecy()->makeProphecyMethodCall(__FUNCTION__, func_get_args());'
);
If you don't mind I would prepare a PR which would not eat references in ProphecySubjectPatch::apply()
.
Metadata
Metadata
Assignees
Labels
No labels