28 lines
742 B
PHP
28 lines
742 B
PHP
<?php
|
|
|
|
namespace PhpSpreadsheetTests;
|
|
|
|
class SettingsTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function setUp()
|
|
{
|
|
}
|
|
|
|
/**
|
|
*/
|
|
public function testGetXMLSettings()
|
|
{
|
|
$result = \PhpSpreadsheet\Settings::getLibXmlLoaderOptions();
|
|
$this->assertTrue((bool) ((LIBXML_DTDLOAD | LIBXML_DTDATTR) & $result));
|
|
}
|
|
|
|
/**
|
|
*/
|
|
public function testSetXMLSettings()
|
|
{
|
|
call_user_func_array([\PhpSpreadsheet\Settings::class, 'setLibXmlLoaderOptions'], [LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID]);
|
|
$result = \PhpSpreadsheet\Settings::getLibXmlLoaderOptions();
|
|
$this->assertTrue((bool) ((LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID) & $result));
|
|
}
|
|
}
|