Chapter 12. Functional Tests in the Web Browser Using Selenium

In the previous chapter, we mentioned Selenium as one of the options for testing legacy code. Also, we have seen a few tricks that might help us to test legacy code. However, all of the suggested methods were just ways of overcoming problems with badly written code.

There is one method that will test any web application—old or new, legacy or latest development—and it doesn't matter how it works, but rather what it does. Yes, this is functional testing where we are not even trying to isolate the tested code but are trying to test it as it is.

To get as close as possible to a real user experience, you can run tests in the web browser and simulate user activity. As we are writing web applications, ...

Get PHPUnit Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.