Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jcopin committed Sep 15, 2023
1 parent 66d5c8d commit a0ee029
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/PhpSpreadsheetTests/Reader/Xls/XlsBugPr3734Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace PhpOffice\PhpSpreadsheetTests\Reader\Xls;

use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\TestCase;
use PhpOffice\PhpSpreadsheet\IOFactory;
use SplFileInfo;

class XlsBugPr3734Test extends TestCase
{
/**
* Test XLS file including data with missing fonts?
*/
public function testXlsFileWithNoFontIndex(): void
{
$fileName = dirname(__DIR__, 3) . '/data/Reader/XLS/bug-pr-3734.xls';
$file = new SplFileInfo($fileName);

IOFactory::load($file);

// If no error occurs on load, test is passed!
self::assertTrue(true);
}
}
Binary file added tests/data/Reader/XLS/bug-pr-3734.xls
Binary file not shown.

0 comments on commit a0ee029

Please sign in to comment.