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.
โ02-20-2013 07:37 AM
there are http://developer.authorize.net/downloads/samplecode/
which do not use the SDKs
โ02-27-2013 04:18 PM
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.
โ02-25-2013 02:31 PM
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."
โ02-26-2013 08:50 AM - edited โ02-26-2013 08:51 AM
I typed phpunit AuthorizeNETCIM_test in the command line. Also tried running AuthorizeNetCIM_Test.php in the browser but it said Warning: require_once(PHPUnit/Framework.php): Please help me understand.
โ02-26-2013 01:40 PM - edited โ02-26-2013 01:47 PM
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?
โ02-27-2013 11:24 AM - edited โ02-27-2013 11:24 AM
there are http://developer.authorize.net/downloads/samplecode/
which do not use the SDKs
โ02-27-2013 04:18 PM