setOutputCallback(function (): void { }); require $sample; self::assertTrue(true); } public function providerSample(): array { $skipped = [ ]; if (PHP_VERSION_ID >= 80200) { // Hopefully temporary. Continue to try // 32_chart_read_write_PDF/HTML // so as not to lose track of the problem. $skipped[] = 'Chart/35_Chart_render.php'; } // Unfortunately some tests are too long to run with code-coverage // analysis on GitHub Actions, so we need to exclude them global $argv; if (in_array('--coverage-clover', $argv)) { $tooLongToBeCovered = [ 'Basic/06_Largescale.php', 'Basic/13_CalculationCyclicFormulae.php', ]; $skipped = array_merge($skipped, $tooLongToBeCovered); } $helper = new Sample(); $result = []; foreach ($helper->getSamples() as $samples) { foreach ($samples as $sample) { if (!in_array($sample, $skipped)) { $file = 'samples/' . $sample; $result[$sample] = [$file]; } } } return $result; } }