test_class.declarator: context = SensorContextTester.create(new File("src/test/resources").getAbsoluteFile())
test_class.modifier: private final
test_class.original_string: private final SensorContextTester context = SensorContextTester.create(new File("src/test/resources").getAbsoluteFile());
test_class.type: SensorContextTester
test_class.var_name: context
test_class.declarator: progressReport = mock(ProgressReport.class)
test_class.modifier: private
test_class.original_string: private ProgressReport progressReport = mock(ProgressReport.class);
test_class.type: ProgressReport
test_class.var_name: progressReport
test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @org.junit.Rule
    public final
test_class.original_string: @org.junit.Rule
    public final ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.file: sonar-php-plugin/src/test/java/org/sonar/plugins/php/ScannerTest.java
test_class.identifier: ScannerTest
test_case.body: @Test
    public void cancelled_analysis() {
      Scanner scanner = new TestScanner(context);
      context.setCancelled(true);
      thrown.expectMessage("Analysis cancelled");
      try {
        scanner.execute(progressReport, ImmutableList.of(PhpTestUtils.inputFile("empty.php")));
      } finally {
        verify(progressReport).cancel();
        verify(progressReport, never()).stop();
      }
    }
test_case.class_method_signature: ScannerTest.cancelled_analysis()
test_case.full_signature: @Test public void cancelled_analysis()
test_case.identifier: cancelled_analysis
test_case.invocations: setCancelled expectMessage execute of inputFile cancel verify stop verify never
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void cancelled_analysis()
focal_class.declarator: LOG = Loggers.get(Scanner.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Loggers.get(Scanner.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: FAIL_FAST_PROPERTY_NAME = "sonar.internal.analysis.failFast"
focal_class.modifier: private static final
focal_class.original_string: private static final String FAIL_FAST_PROPERTY_NAME = "sonar.internal.analysis.failFast";
focal_class.type: String
focal_class.var_name: FAIL_FAST_PROPERTY_NAME
focal_class.declarator: context
focal_class.modifier: protected final
focal_class.original_string: protected final SensorContext context;
focal_class.type: SensorContext
focal_class.var_name: context
focal_class.file: sonar-php-plugin/src/main/java/org/sonar/plugins/php/Scanner.java
focal_class.identifier: Scanner
focal_class.class_method_signature: Scanner.Scanner(SensorContext context)
focal_class.full_signature:   Scanner(SensorContext context)
focal_class.identifier: Scanner
focal_class.parameters: (SensorContext context)
focal_class.signature:  Scanner(SensorContext context)
focal_class.class_method_signature: Scanner.execute(List<InputFile> files)
focal_class.full_signature:  void execute(List<InputFile> files)
focal_class.identifier: execute
focal_class.parameters: (List<InputFile> files)
focal_class.return: void
focal_class.signature: void execute(List<InputFile> files)
focal_class.class_method_signature: Scanner.execute(ProgressReport progressReport, List<InputFile> files)
focal_class.full_signature:  void execute(ProgressReport progressReport, List<InputFile> files)
focal_class.identifier: execute
focal_class.parameters: (ProgressReport progressReport, List<InputFile> files)
focal_class.return: void
focal_class.signature: void execute(ProgressReport progressReport, List<InputFile> files)
focal_class.class_method_signature: Scanner.processFile(InputFile file)
focal_class.full_signature: private void processFile(InputFile file)
focal_class.identifier: processFile
focal_class.modifiers: private
focal_class.parameters: (InputFile file)
focal_class.return: void
focal_class.signature: void processFile(InputFile file)
focal_class.class_method_signature: Scanner.stopProgressReport(ProgressReport progressReport, boolean success)
focal_class.full_signature: private static void stopProgressReport(ProgressReport progressReport, boolean success)
focal_class.identifier: stopProgressReport
focal_class.modifiers: private static
focal_class.parameters: (ProgressReport progressReport, boolean success)
focal_class.return: void
focal_class.signature: void stopProgressReport(ProgressReport progressReport, boolean success)
focal_class.class_method_signature: Scanner.name()
focal_class.full_signature: abstract String name()
focal_class.identifier: name
focal_class.modifiers: abstract
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String name()
focal_class.class_method_signature: Scanner.scanFile(InputFile file)
focal_class.full_signature: abstract void scanFile(InputFile file)
focal_class.identifier: scanFile
focal_class.modifiers: abstract
focal_class.parameters: (InputFile file)
focal_class.return: void
focal_class.signature: void scanFile(InputFile file)
focal_class.class_method_signature: Scanner.logException(Exception e, InputFile file)
focal_class.full_signature: abstract void logException(Exception e, InputFile file)
focal_class.identifier: logException
focal_class.modifiers: abstract
focal_class.parameters: (Exception e, InputFile file)
focal_class.return: void
focal_class.signature: void logException(Exception e, InputFile file)
focal_class.class_method_signature: Scanner.onEnd()
focal_class.full_signature:  void onEnd()
focal_class.identifier: onEnd
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onEnd()
focal_method.body: void execute(List<InputFile> files) {
      ProgressReport progressReport = new ProgressReport("PHP analyzer progress", TimeUnit.SECONDS.toMillis(10));
      execute(progressReport, files);
    }
focal_method.class_method_signature: Scanner.execute(List<InputFile> files)
focal_method.full_signature:  void execute(List<InputFile> files)
focal_method.identifier: execute
focal_method.invocations: toMillis execute
focal_method.parameters: (List<InputFile> files)
focal_method.return: void
focal_method.signature: void execute(List<InputFile> files)