Can someone in simple terms explain how to run AuthorizeNETCIM_Test.php? I found the README file and it says :Usage: - On the command line in this folder run: phpunit . I have installed Pear and also phpunit. I have no idea how to run this test. I got a list of commands in the command line.
Solved! Go to Solution.
PHPUnit can be used to run any individual test or all of the tests within a directory. The readme could possibly be more clear, but the period in "phpunit ." is actually an essential part of the command which refers to the current directory. From within the tests directory of the SDK, you can run "phpunit ." to execute all of the tests.
Thanks. Ok I went to the folder in my local server. wwwroot\your_store\anet_php_sdk and clicked on the tests folder. Ran command line from there. Typed "pear" and it loads a list of commands. What do I do next. How do I actually run "phpunit."
Still not sure how the AuthorizeNetCIM_Test file works. But I went into the XML folder and opened index.php and saw how it creates customer profile, payment profile, shipping address, transaction and delete customer. I was able to create these. The store example is in AIM. I need sample code CIM. I need to see how I can retireve the data such as the customer name and other details. Is there some samples in CIM?