New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow shallow copy for dependencies #2496

Closed
ostrolucky opened this Issue Feb 9, 2017 · 0 comments

Comments

2 participants
@ostrolucky
Contributor

ostrolucky commented Feb 9, 2017

I need to clone object where one of it's properties is throwing exception in __clone method. Just a normal clone $object would suffice here, but PhpUnit uses DeepClone instead.

Additionally, there is no proper way to modify this mechanism, because even though handleDependencies() is protected, there is no handleDependency() method and $dependencies and $dependencyInput are private

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment