Conditions | 5 |
Paths | 8 |
Total Lines | 30 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function providerSample() |
||
29 | { |
||
30 | $skipped = [ |
||
31 | 'Chart/32_Chart_read_write_PDF.php', // Unfortunately JpGraph is not up to date for latest PHP and raise many warnings |
||
32 | 'Chart/32_Chart_read_write_HTML.php', // idem |
||
33 | ]; |
||
34 | |||
35 | // Unfortunately some tests are too long be ran with code-coverage |
||
36 | // analysis on Travis, so we need to exclude them |
||
37 | global $argv; |
||
38 | if (in_array('--coverage-clover', $argv)) { |
||
39 | $tooLongToBeCovered = [ |
||
40 | 'Basic/06_Largescale.php', |
||
41 | 'Basic/13_CalculationCyclicFormulae.php', |
||
42 | ]; |
||
43 | $skipped = array_merge($skipped, $tooLongToBeCovered); |
||
44 | } |
||
45 | |||
46 | $helper = new Sample(); |
||
47 | $result = []; |
||
48 | foreach ($helper->getSamples() as $samples) { |
||
49 | foreach ($samples as $sample) { |
||
|
|||
50 | if (!in_array($sample, $skipped)) { |
||
51 | $file = '../samples/' . $sample; |
||
52 | $result[] = [$file]; |
||
53 | } |
||
54 | } |
||
55 | } |
||
56 | |||
57 | return $result; |
||
58 | } |
||
60 |