setOutputCallback(function () { }); require $sample; } public function providerSample() { $skipped = []; // Unfortunately some tests are too long be ran with code-coverage // analysis on Travis, so we need to exclude them global $argv; if (in_array('--coverage-clover', $argv)) { $tooLongToBeCovered = [ '06 Largescale', '13 CalculationCyclicFormulae', ]; $skipped = array_merge($skipped, $tooLongToBeCovered); } $helper = new Sample(); $result = []; foreach ($helper->getSamples() as $samples) { foreach ($samples as $name => $sample) { if (!in_array($name, $skipped) && preg_match('~21_Pdf_mPDF~', $sample)) { $file = '../samples/' . $sample; $result[] = [$file]; } } } return $result; } }