 8dddf56c2e
			
		
	
	
		8dddf56c2e
		
			
		
	
	
	
	
		
			
			This simplify code, increase readability and improve the function signature for API users.
		
			
				
	
	
		
			24 lines
		
	
	
		
			715 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			715 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests;
 | |
| 
 | |
| class SettingsTest extends \PHPUnit_Framework_TestCase
 | |
| {
 | |
|     public function setUp()
 | |
|     {
 | |
|     }
 | |
| 
 | |
|     public function testGetXMLSettings()
 | |
|     {
 | |
|         $result = \PhpOffice\PhpSpreadsheet\Settings::getLibXmlLoaderOptions();
 | |
|         $this->assertTrue((bool) ((LIBXML_DTDLOAD | LIBXML_DTDATTR) & $result));
 | |
|     }
 | |
| 
 | |
|     public function testSetXMLSettings()
 | |
|     {
 | |
|         \PhpOffice\PhpSpreadsheet\Settings::setLibXmlLoaderOptions(LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID);
 | |
|         $result = \PhpOffice\PhpSpreadsheet\Settings::getLibXmlLoaderOptions();
 | |
|         $this->assertTrue((bool) ((LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID) & $result));
 | |
|     }
 | |
| }
 |