Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function providerSample() |
||
22 | { |
||
23 | $skipped = [ |
||
24 | '07 Reader PCLZip', // Excel2007 cannot load file, leading to OpenOffice trying to and crashing. This is a bug that should be fixed |
||
25 | '20 Read OOCalc with PCLZip', // Crash: Call to undefined method PhpSpreadsheet\Shared\ZipArchive::statName() |
||
26 | '21 Pdf', // for now we don't have 3rdparty libs to tests PDF, but it should be added |
||
27 | ]; |
||
28 | $helper = new \PhpSpreadsheet\Helper\Sample(); |
||
29 | $samples = []; |
||
30 | foreach ($helper->getSamples() as $name => $sample) { |
||
31 | if (!in_array($name, $skipped)) { |
||
32 | $samples[$name] = [$sample]; |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $samples; |
||
37 | } |
||
38 | } |
||
39 |