O'Reilly logo

PHPUnit Essentials by Zdenek Machek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Tests and What They're All About

In the first two introductory chapters, we installed PHPUnit and set up IDE to be able to write and run tests. Now it's time to jump into the unit testing swimming pool and swim. Lots of theory has been written about unit testing, test-driven development, behavior-driven development, and many more clever things. But the developer needs to be able to use technology as quickly as possible and see results, and this is what we try. You will see step by step how you can use it: how to write code that can be tested and code that can't be tested. As PHP is the language used by web developers, the focus of unit testing is going to be web applications. It's important to understand the structure of the application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required