Bug: Overwriting a resultset bound to a regex sql stmt not possible
From the documentation of mock_add_resultset
:
It should also be noted that if you want, for some reason, to change the result set bound to a particular SQL statement, all you need to do is add the result set again with the same SQL statement and
DBD::Mock
will overwrite it.
This is only true for a string value for the sql
attribute, it does not work when sql
has a regex value. It seems there is no way to accomplish this.