test_class.declarator: plugin
test_class.modifier: private
test_class.original_string: private PhpPlugin plugin;
test_class.type: PhpPlugin
test_class.var_name: plugin
test_class.file: sonar-php-plugin/src/test/java/org/sonar/plugins/php/PhpPluginTest.java
test_class.identifier: PhpPluginTest
test_case.body: @Test
    public void test() {
      Plugin.Context context = qubeContext(Version.create(6, 7));
      plugin.define(context);
  
      assertThat(context.getExtensions()).hasSize(12);
    }
test_case.class_method_signature: PhpPluginTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: qubeContext create define hasSize assertThat getExtensions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.declarator: FILE_SUFFIXES_KEY = "sonar.php.file.suffixes"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILE_SUFFIXES_KEY = "sonar.php.file.suffixes";
focal_class.type: String
focal_class.var_name: FILE_SUFFIXES_KEY
focal_class.declarator: PHPUNIT_COVERAGE_REPORT_PATHS_KEY = "sonar.php.coverage.reportPaths"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHPUNIT_COVERAGE_REPORT_PATHS_KEY = "sonar.php.coverage.reportPaths";
focal_class.type: String
focal_class.var_name: PHPUNIT_COVERAGE_REPORT_PATHS_KEY
focal_class.declarator: PHPUNIT_TESTS_REPORT_PATH_KEY = "sonar.php.tests.reportPath"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHPUNIT_TESTS_REPORT_PATH_KEY = "sonar.php.tests.reportPath";
focal_class.type: String
focal_class.var_name: PHPUNIT_TESTS_REPORT_PATH_KEY
focal_class.declarator: PHP_EXCLUSIONS_KEY = "sonar.php.exclusions"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHP_EXCLUSIONS_KEY = "sonar.php.exclusions";
focal_class.type: String
focal_class.var_name: PHP_EXCLUSIONS_KEY
focal_class.declarator: PHP_EXCLUSIONS_DEFAULT_VALUE = "**/vendor/**"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHP_EXCLUSIONS_DEFAULT_VALUE = "**/vendor/**";
focal_class.type: String
focal_class.var_name: PHP_EXCLUSIONS_DEFAULT_VALUE
focal_class.declarator: PHP_CATEGORY = "PHP"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHP_CATEGORY = "PHP";
focal_class.type: String
focal_class.var_name: PHP_CATEGORY
focal_class.declarator: GENERAL_SUBCATEGORY = "General"
focal_class.modifier: public static final
focal_class.original_string: public static final String GENERAL_SUBCATEGORY = "General";
focal_class.type: String
focal_class.var_name: GENERAL_SUBCATEGORY
focal_class.declarator: PHPUNIT_SUBCATEGORY = "PHPUnit"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHPUNIT_SUBCATEGORY = "PHPUnit";
focal_class.type: String
focal_class.var_name: PHPUNIT_SUBCATEGORY
focal_class.file: sonar-php-plugin/src/main/java/org/sonar/plugins/php/PhpPlugin.java
focal_class.identifier: PhpPlugin
focal_class.interfaces: implements Plugin
focal_class.class_method_signature: PhpPlugin.define(Context context)
focal_class.full_signature: @Override public void define(Context context)
focal_class.identifier: define
focal_class.modifiers: @Override public
focal_class.parameters: (Context context)
focal_class.return: void
focal_class.signature: void define(Context context)
focal_method.body: @Override
    public void define(Context context) {
      context.addExtensions(
  
        // Language
        Php.class,
  
        // Sensor
        PHPSensor.class,
        PhpIniSensor.class,
  
        // Rules and profiles
        PHPRulesDefinition.class,
        PHPProfileDefinition.class,
        PSR2ProfileDefinition.class,
        DrupalProfileDefinition.class,
  
        PhpExclusionsFileFilter.class,
  
        // Properties
        PropertyDefinition.builder(FILE_SUFFIXES_KEY)
          .defaultValue(Php.DEFAULT_FILE_SUFFIXES)
          .name("File Suffixes")
          .description("List of suffixes of PHP files to analyze.")
          .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT)
          .category(PHP_CATEGORY)
          .multiValues(true)
          .subCategory(GENERAL_SUBCATEGORY)
          .build(),
  
        PropertyDefinition.builder(PHP_EXCLUSIONS_KEY)
          .defaultValue(PHP_EXCLUSIONS_DEFAULT_VALUE)
          .name("PHP Exclusions")
          .description("List of file path patterns to be excluded from analysis of PHP files.")
          .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT)
          .category(PHP_CATEGORY)
          .subCategory(GENERAL_SUBCATEGORY)
          .multiValues(true)
          .build()
        );
  
      if (context.getRuntime().getProduct() != SonarProduct.SONARLINT) {
        context.addExtension(
          PropertyDefinition.builder(PHPUNIT_TESTS_REPORT_PATH_KEY)
            .name("Unit Test Report")
            .description("Path to the PHPUnit unit test execution report file. The path may be either absolute or relative to the project base directory.")
            .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT)
            .category(PHP_CATEGORY)
            .subCategory(PHPUNIT_SUBCATEGORY)
            .build());
      }
      context.addExtension(PropertyDefinition.builder(PHPUNIT_COVERAGE_REPORT_PATHS_KEY)
        .name("Coverage Reports")
        .description("List of PHPUnit code coverage report files. Each path can be either absolute or relative.")
        .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT)
        .category(PHP_CATEGORY)
        .multiValues(true)
        .subCategory(PHPUNIT_SUBCATEGORY)
        .build());
  
    }
focal_method.class_method_signature: PhpPlugin.define(Context context)
focal_method.full_signature: @Override public void define(Context context)
focal_method.identifier: define
focal_method.invocations: addExtensions build subCategory multiValues category onQualifiers description name defaultValue builder build multiValues subCategory category onQualifiers description name defaultValue builder getProduct getRuntime addExtension build subCategory category onQualifiers description name builder addExtension build subCategory multiValues category onQualifiers description name builder
focal_method.modifiers: @Override public
focal_method.parameters: (Context context)
focal_method.return: void
focal_method.signature: void define(Context context)