Finding Code Coverage of PHP based sites without Unit Tests

Not all sites contain unit tests. In many cases, sites are built to try out a new concept and suddenly if the idea picks up, then you’ve more features coming in for the site. Also as writing unit tests cases take lot of time during development, many companies prefer to skip it.

Let’s say if you’re working on a site which doesn’t have unit tests and you want to find out what part of code is no longer in use so that you can clean it up, then what option do you have?

There is an option. Thanks to XDebug Team and Sebastian Bergmann for the beautiful tools they have created for the community.

Here is the Derick Rethans’ video explaining the process.