Mockery中有没有类似PHPUnit的at方法的方法?
Is there a method like PHPUnit's at method in Mockery?
我想在 Mockery 中实现 at method。
您可以使用 ordered
功能,from the doc:
Declares that this method is expected to be called in a specific order
in relation to similarly marked methods. The order is dictated by the
order in which this modifier is actually used when setting up mocks.
例如检查this article for details and the github repo。
希望对您有所帮助
我想在 Mockery 中实现 at method。
您可以使用 ordered
功能,from the doc:
Declares that this method is expected to be called in a specific order in relation to similarly marked methods. The order is dictated by the order in which this modifier is actually used when setting up mocks.
例如检查this article for details and the github repo。
希望对您有所帮助