Skip to content

Commit

Permalink
update test for open spout and php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Nov 29, 2024
1 parent 894e105 commit 2ef8225
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/SpreadCompatXlsxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public function testOpenSpoutCanWriteXlsx()
$this->assertStringContainsString('[Content_Types].xml', $string);
$tmpFile = SpreadCompat::stringToTempFile($string);
$props = SpreadCompat::excelProperties($tmpFile);

// this does not seem to work with older open spout version but it's fairly minor
$result = PHP_VERSION_ID > 80100 ? "test" : "";
$this->assertEquals("test", $props['creator']);
$this->assertNotEquals("OpenSpout", $props['creator']);
}
Expand Down

0 comments on commit 2ef8225

Please sign in to comment.