From 00c01bce08a2127fc3d7570bf825818c11640d9a Mon Sep 17 00:00:00 2001 From: aVadim Date: Thu, 2 Jan 2025 18:19:36 +0300 Subject: [PATCH] upd test --- tests/FastExcelWriterTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/FastExcelWriterTest.php b/tests/FastExcelWriterTest.php index 5aaf521..e7e1134 100644 --- a/tests/FastExcelWriterTest.php +++ b/tests/FastExcelWriterTest.php @@ -103,10 +103,13 @@ protected function saveCheckRead($excel, $testFileName): ExcelReader var_dump($text); } $this->assertTrue($valid); - $vbsChecker = __DIR__ . '/check_open_xlsx.vbs'; - if (is_file($vbsChecker)) { - system("$vbsChecker $testFileName", $result); - $this->assertEquals(0, $result); + + if (substr(PHP_OS, 0, 3) === 'WIN') { + $vbsChecker = __DIR__ . '/check_open_xlsx.vbs'; + if (is_file($vbsChecker)) { + system("$vbsChecker $testFileName", $result); + $this->assertEquals(0, $result); + } } return ExcelReader::open($testFileName);