On the PHPro.org Kevin Waterson has posted a guide to automated testing with Selenium2 and PHPUnit to create functional tests to check the resulting output of your application.
Selenium2 is a software testing framework for web applications. This tutorial focuses on automating browser testing using Selenium2.
The tutorial walks you through everything you'll need to get started testing with these tools, end-to-end:
- Selenium installation
- Writing a first test
- Setting up the Selenium environment
- Testing with multiple browsers
- Assertion types (and examples)
- Testing form actions and results