Closed (fixed)
Project:
Mockery
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2017 at 06:04 UTC
Updated:
30 May 2017 at 03:31 UTC
Jump to comment: Most recent
Is this sandbox module actively maintained? If so, I have some updates I can provide to make it compatible with newer versions of Mockery.
Also, I'm working on a module that integrates Mockery with Libraries API so that users don't have to rely solely on having access to PECL to install the Mockery library.
Comments
Comment #2
znerol commentedNo, it is not maintained. I did start that project in order to simplify testing the substantial API of Authcache 2, but then ended up using a quite similar thing but without external dependencies HookStub.inc.
I remember that I have had some serialization-issues when passing around the mockery objects between the test-runner and the child-site in some cases, but maybe that's better now(?).
Anyway, I'm more than willing to transfer module ownership to anyone willing to work with that code.
Comment #3
guypaddock commentedI wonder how ownership transfers work for Sandbox projects.
At a minimum, I have a patch I'd like to submit. :)
Comment #4
guypaddock commentedComment #5
guypaddock commentedThanks, @znerol.
After spending the weekend tinkering with this, I think I figured out exactly what you were talking about. If you're curious, checkout the new code in
DrupalMockeryMockProxy. Part of it feels like a kludge -- because I had to break some encapsulation in the Mockery library in order to restore state -- but it seems to work pretty well.All of my findings are documented in new docblocks on
DrupalMockeryMockProxyand throughout new docblocks on the other classes in themockery.incfile.