This code demonstrates how to generate code coverage for your PHP project when the execution is done through a browser. For a detailed setup please refer http://tarunlalwani.com/post/php-code-coverage-web-selenium