PHPUnit: mocking subplugins?

Re: PHPUnit: mocking subplugins?

by Morgan Harris -
Number of replies: 0

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…