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
$ vendor/bin/atoum -f testfile.php
Failure (1 test, 0/1 method, 1 void method, 0 skipped method, 0 uncompleted method, 0 failure, 1 error, 0 exception)!> There is 1 error:
=> tests\unit\jubianchi\InterfaceMock\D::testFoo():
==> Error E_WARNING in /Users/jforay/Code/atoum-static-interface-method/test.php on line 34, generated by file /Users/jforay/Code/atoum-static-interface-method/vendor/atoum/atoum/classes/mock/generator.php(205) :eval()'d code on line 47:call_user_func_array() expects parameter 1 to be a valid callback, cannot access parent:: when current class scope has no parent> There is 1 void method:=> tests\unit\jubianchi\InterfaceMock\D::testFoo()
Dumping the generated mock does show there is a call to non-existent parent:
This is going a little further than #233, only adding a call to the static method.
Here is the new snippet:
Giving the following output:
Dumping the generated mock does show there is a call to non-existent parent:
I have two issues with this generated code
I am happy to help working on a fix, please let me know if you know where I should be looking.
The text was updated successfully, but these errors were encountered: