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