-
Notifications
You must be signed in to change notification settings - Fork 9
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
Make SpoofedCollaborator implement or extend wrapped class #6
Comments
This is more complex but should be possible. We must find out (on parse level) is source class is interface or standard class. Of course, if the class is |
Just stated testing this extension, right now I see 2 problems:
function it_do_something()
{
$this->doSomethingMore(new Foo());
}
private function doSomethingMore(Foo $foo)
{
foreach ($foo as $bar) {
// ...
}
}
with a foo class that implement I am not sure if the second problem is unrelated to the first one. If so I can create a dedicated issue. |
The second problem concerns the same, so the same fix will solve both cases. |
This is more complicated, because in the case of an interface, you need to add an implementation, but he is in the middle of work, I will inform you. |
This is problem, when collaborator is used not only in
Subject
orCollaborator
, for example:The text was updated successfully, but these errors were encountered: