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 7. Organizing Tests

So far we have been writing tests but were not worried how to organize them, because each test should be independent and repeatable. So, it didn't matter when and how you ran it, you should always get the same result. But when you have more tests, the need to organize them presents itself. They might be all unit tests that you run with the same configuration, but sooner or later, you will have more than one set of tests, which you need to run differently with different configurations. Unit tests are going to run very often, because they are fast and it is good to be notified about problems as soon as possible. However, you will have integration tests and functional tests, which are going to be much slower and you will ...

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