Back

phpunit test cases for omnipay purchase and send method.


I've written new repository using omnipay for x payment gateway. I've successfully written test cases for repository itself. Now the problem is i am using this repository in my code and it's also working fine.

e.g.

$gateway->purchase($parametersArray)->send(); $response->isSuccessful();

Now i want to write test cases for the above code by mock/any method.


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us