 1ac0f42a58
			
		
	
	1ac0f42a58
	
	
	
		
			
			Travis config update Removed HHVM script as Laravel no longer support HHVM after releasing 5.3
		
			
				
	
	
		
			20 lines
		
	
	
		
			575 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			575 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PharIo\Manifest;
 | |
| 
 | |
| use DOMDocument;
 | |
| use LibXMLError;
 | |
| 
 | |
| class ManifestDocumentLoadingExceptionTest extends \PHPUnit\Framework\TestCase {
 | |
|     public function testXMLErrorsCanBeRetrieved() {
 | |
|         $dom  = new DOMDocument();
 | |
|         $prev = libxml_use_internal_errors(true);
 | |
|         $dom->loadXML('<?xml version="1.0" ?><broken>');
 | |
|         $exception = new ManifestDocumentLoadingException(libxml_get_errors());
 | |
|         libxml_use_internal_errors($prev);
 | |
| 
 | |
|         $this->assertContainsOnlyInstancesOf(LibXMLError::class, $exception->getLibxmlErrors());
 | |
|     }
 | |
| 
 | |
| }
 |