Yeah, the problem is that the polymorphic bits of my plugin are referenced in about half of the code… that's a big hole in my code coverage. I've been thinking that I might replace any calls to get_plugins with an internal function call that can be overridden by PHPUnit and return the mocked plugin. I was just kind of hoping there was some obscure built in that I was missing to do this automatically…
Testing and QA
PHPUnit: mocking subplugins?
This discussion has been locked so you can no longer reply to it.