Search in sources :

Example 1 with IsCountableCanBeUsedInspector

use of com.kalessil.phpStorm.phpInspectionsEA.inspectors.apiUsage.IsCountableCanBeUsedInspector in project phpinspectionsea by kalessil.

the class IsCountableCanBeUsedInspectorTest method testIfFindsAllPatterns.

public void testIfFindsAllPatterns() {
    final PhpLanguageLevel level = PhpLanguageLevel.parse("7.4");
    if (level != null && level.getVersionString().equals("7.4")) {
        PhpProjectConfigurationFacade.getInstance(myFixture.getProject()).setLanguageLevel(level);
        myFixture.enableInspections(new IsCountableCanBeUsedInspector());
        myFixture.configureByFile("testData/fixtures/api/is-countable.php");
        myFixture.testHighlighting(true, false, true);
    }
}
Also used : IsCountableCanBeUsedInspector(com.kalessil.phpStorm.phpInspectionsEA.inspectors.apiUsage.IsCountableCanBeUsedInspector) PhpLanguageLevel(com.jetbrains.php.config.PhpLanguageLevel)

Aggregations

PhpLanguageLevel (com.jetbrains.php.config.PhpLanguageLevel)1 IsCountableCanBeUsedInspector (com.kalessil.phpStorm.phpInspectionsEA.inspectors.apiUsage.IsCountableCanBeUsedInspector)1