phpOMS/tests/Utils/Parser/Presentation/PresentationWriterTest.php
2023-10-22 02:59:46 +00:00

39 lines
834 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\Presentation;
include_once __DIR__ . '/../../../Autoloader.php';
use phpOMS\Utils\Parser\Presentation\PresentationWriter;
use PhpOffice\PhpPresentation\IOFactory;
/**
* @internal
*/
final class PresentationWriterTest extends \PHPUnit\Framework\TestCase
{
public function testParsing() : void
{
$presentation = IOFactory::load(__DIR__ . '/data/Powerpoint.pptx');
$writer = new PresentationWriter($presentation);
self::assertEquals(
\file_get_contents(__DIR__ . '/data/Powerpoint.html'),
$writer->renderHtml()
);
}
}