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 5. Running Tests from the Command Line

In the first chapter, we installed PHPUnit and then tried to run one simple test from the command line in order to test whether that PHPUnit works. In the second chapter, we saw how to configure and run tests in IDE. However, IDE is just a bridge between you and the command-line test runner, providing a nice and easy way to run and debug tests when you write code. But IDEs are not the best way to run and process the results of many tests. When you have tests written, there comes a time when you will need to look back at PHPUnit on the command line. The PHPUnit command-line test runner invoked through the phpunit command can do much more then just execute tests, as we will see in this chapter.

In this ...

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