PHP code example of matthiasnoback / behat-remote-code-coverage-extension
1. Go to this page and download the library: Download matthiasnoback/behat-remote-code-coverage-extension library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
matthiasnoback / behat-remote-code-coverage-extension example snippets
use LiveCodeCoverage\RemoteCodeCoverage;
$shutDownCodeCoverage = RemoteCodeCoverage::bootstrap(
(bool)getenv('CODE_COVERAGE_ENABLED'),
sys_get_temp_dir(),
__DIR__ . '/../phpunit.xml.dist'
);
// Run your web application now...
// This will save and store collected coverage data:
$shutDownCodeCoverage();