Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Code coverage in PhpStorm


Having set the platform to write clean code and to remove bugs from code to make good software, you must be thinking that your task is done, and you can now sit back and relax.

Not now! There's much more to do. Since you have promised that you will not tire and that you will not falter, you should have the fire burning within to proceed. This time, you are going to proceed with code coverage. Yes you read it right, code coverage.

This is the right time to get informed about this phenomenon now that you have working knowledge about a testing system (PHPUnit) and a debugging system (Xdebug). Code coverage is a phenomenon that is brought about by the combined functionality provided by PHPUnit and Xdebug. This means that you have to have both the systems installed on your development machine if you really want code coverage.

Getting ready

To solve matters such as these, there comes code coverage. No, no, don't think that code coverage will remove the unused lines—it will...