Menu

Diff of /samples/remote/codeCoverageMain.php [r3] .. [r4]  Maximize  Restore

Switch to unified view

a/samples/remote/codeCoverageMain.php b/samples/remote/codeCoverageMain.php
...
...
30
    $includePaths = array(realpath($PHPCOVERAGE_APPBASE_PATH));
30
    $includePaths = array(realpath($PHPCOVERAGE_APPBASE_PATH));
31
31
32
    // Notice the coverage recorder is of type RemoteCoverageRecorder
32
    // Notice the coverage recorder is of type RemoteCoverageRecorder
33
    $cov = new RemoteCoverageRecorder($includePaths, $excludePaths, $covReporter);
33
    $cov = new RemoteCoverageRecorder($includePaths, $excludePaths, $covReporter);
34
    // Pass the code coverage XML url into the generateReport function
34
    // Pass the code coverage XML url into the generateReport function
35
    $cov->generateReport($cov_url . urlencode("?phpcoverage-action=get-coverage-xml"), true);
35
    $cov->generateReport($cov_url . "?phpcoverage-action=get-coverage-xml", true);
36
    $covReporter->printTextSummary($PHPCOVERAGE_REPORT_DIR . "/report.txt");
36
    $covReporter->printTextSummary($PHPCOVERAGE_REPORT_DIR . "/report.txt");
37
    // Clean up
37
    // Clean up
38
    file_get_contents($cov_url . "?phpcoverage-action=cleanup");
38
    file_get_contents($cov_url . "?phpcoverage-action=cleanup");
39
39
40
?>
40
?>