Background: I am attempting to do a couple of unit tests on AJAX requests which would call PHP functions on the server-side. As this involves database manipulation, I have decided to check the return of the calls using unit tests in PHP.
Given the URL of an AJAX request, how do I call it and gets its response?
*Added question:*If the parameters include a form sent via POST, how shall I handle it?