@@ -11,10 +11,8 @@ class SampleTest extends TestCase
11
11
* @runInSeparateProcess
12
12
* @preserveGlobalState disabled
13
13
* @dataProvider providerSample
14
- *
15
- * @param mixed $sample
16
14
*/
17
- public function testSample ($ sample ): void
15
+ public function testSample (string $ sample ): void
18
16
{
19
17
// Suppress output to console
20
18
$ this ->setOutputCallback (function (): void {
@@ -32,18 +30,8 @@ public function providerSample(): array
32
30
'Chart/32_Chart_read_write_HTML.php ' , // idem
33
31
'Chart/35_Chart_render.php ' , // idem
34
32
];
35
- // TCPDF and DomPDF libraries don't support PHP8 yet
36
- if (\PHP_VERSION_ID >= 80000 ) {
37
- $ skipped = array_merge (
38
- $ skipped ,
39
- [
40
- 'Pdf/21_Pdf_Domdf.php ' ,
41
- 'Pdf/21_Pdf_TCPDF.php ' ,
42
- ]
43
- );
44
- }
45
33
46
- // Unfortunately some tests are too long be ran with code-coverage
34
+ // Unfortunately some tests are too long to run with code-coverage
47
35
// analysis on GitHub Actions, so we need to exclude them
48
36
global $ argv ;
49
37
if (in_array ('--coverage-clover ' , $ argv )) {
@@ -58,9 +46,6 @@ public function providerSample(): array
58
46
$ result = [];
59
47
foreach ($ helper ->getSamples () as $ samples ) {
60
48
foreach ($ samples as $ sample ) {
61
- // if (array_pop(explode('/', $sample)) !== 'DGET.php') {
62
- // continue;
63
- // }
64
49
if (!in_array ($ sample , $ skipped )) {
65
50
$ file = 'samples/ ' . $ sample ;
66
51
$ result [$ sample ] = [$ file ];
0 commit comments