The Double Converter automates the process of converting your test suite from using the Mockery mocking library to use the Double library.
Double is a modern PHP test double library that puts developer experience first with zero learning curve, failures for humans, and one clean API.
After running the Double Converter, your Mockery mocks and expectations will be converted to their Test Double equivalents, removing the mockery/mockery dependency from your test suite.
mockery/mockeryThe Double Converter automates the following conversions:
jasonmccreary/test-double dependency.Mockery::mock() and Mockery::spy().Mockery::any().The Double Converter targets common Mockery expectation patterns, but some chains are too complex to safely rewrite automatically, including "bare mocks", complex shorthands, and some argument matcher. Shift will leave a detailed comment for anything it can not convert so you may complete your conversion from Mockery to Double.
Sign in with any of the following services to connect Shift with your Laravel project.
Don't use one of these services?
Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.