mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
36 lines
797 B
PHP
36 lines
797 B
PHP
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\Utils\Parser\Spreadsheet;
|
|
|
|
include_once __DIR__ . '/../../../Autoloader.php';
|
|
|
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
|
use phpOMS\Utils\Parser\Spreadsheet\SpreadsheetWriter;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class SpreadsheetWriterTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testParsing() : void
|
|
{
|
|
$sheet = IOFactory::load(__DIR__ . '/data/Excel.xlsx');
|
|
$writer = new SpreadsheetWriter($sheet);
|
|
|
|
$pdf = $writer->toPdfString(__DIR__ . '/data/Mpdf.pdf');
|
|
self::assertTrue(\is_file(__DIR__ . '/data/Mpdf.pdf'));
|
|
}
|
|
}
|