Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 647 Bytes

File metadata and controls

15 lines (12 loc) · 647 Bytes

This example demonstrates how to analyze a PHP project with the SonarQube Scanner. It reuses existing unit test execution and code coverage reports from PHPUnit.

Prerequisites

Usage

  • In "reports/phpunit.coverage.xml", change the path "src/Math.php" to the full path of this file on your machine.

  • Analyze the project with SonarQube using the SonarQube Scanner:

      sonar-scanner