@Test public void progress_report_should_be_stopped() { TestScanner scanner = new TestScanner(context); scanner.execute(progressReport, ImmutableList.of(PhpTestUtils.inputFile("empty.php"))); verify(progressReport).stop(); }
void execute(List<InputFile> files) { ProgressReport progressReport = new ProgressReport("PHP analyzer progress", TimeUnit.SECONDS.toMillis(10)); execute(progressReport, files); }
Scanner { void execute(List<InputFile> files) { ProgressReport progressReport = new ProgressReport("PHP analyzer progress", TimeUnit.SECONDS.toMillis(10)); execute(progressReport, files); } }
Scanner { void execute(List<InputFile> files) { ProgressReport progressReport = new ProgressReport("PHP analyzer progress", TimeUnit.SECONDS.toMillis(10)); execute(progressReport, files); } Scanner(SensorContext context); }
Scanner { void execute(List<InputFile> files) { ProgressReport progressReport = new ProgressReport("PHP analyzer progress", TimeUnit.SECONDS.toMillis(10)); execute(progressReport, files); } Scanner(SensorContext context);  }
Scanner { void execute(List<InputFile> files) { ProgressReport progressReport = new ProgressReport("PHP analyzer progress", TimeUnit.SECONDS.toMillis(10)); execute(progressReport, files); } Scanner(SensorContext context);   }