php - Does PHPUnit have a Scriptable Web Browser and Web TestsGet the solution ↓↓↓
Does PHPUnit have a Scriptable Web Browser and Web Test capabilities, e.g. to fetch a page from a PHP script served on localhost, and then to click on elements, fill out & submit forms and assert the returned page content?
I am familiar with SimpleTest, and it has excellent classes and assertions for this. Also, the Zend framework seems to have a PHPUnit extension. However, I cannot find docs/examples of how to do web testing with PHPUnit (out-of-the-box) to cover functionality like sessions, form handling, clicking, navigation, ajax, etc..
I am looking for a way to have PHPUnit test my server side PHP code through HTML, thus testing my application from the vantage point of a user/visitor. I am not looking for a browser extension or any other kind of record & playback test framework like Selinium.
Share solution ↓
Link To Answer People are also looking for solutions of the problem: using $this when not in object context laravel
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.