You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is still an issue when mocking a method wich accepts a variable number of arguments but has one or more mandatory arguments (like the sprintf function : http://fr.php.net/manual/en/function.sprintf.php).
Ok, works for me : both of the two test cases (gist #1712910 and gist #1712935) are now working fine : no more
exceptions and mocks are behaving correctly...
I have a class with a method without parameter in declaration but which use func_get_args():
In my tests, i create a mock of this class and want to test this method. But the generate code is:
This test fail because myMethod never receive parameter.
In mageekguy\atoum\mock\generator::getMockedClassCode(), here is the generated code:
The text was updated successfully, but these errors were encountered: