sonarrradarrplexorganizrnginxdashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboard
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							23 lines
						
					
					
						
							750 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							23 lines
						
					
					
						
							750 B
						
					
					
				
								<?php declare(strict_types=1);
							 | 
						|
								
							 | 
						|
								namespace PhpParser\ErrorHandler;
							 | 
						|
								
							 | 
						|
								use PhpParser\Error;
							 | 
						|
								
							 | 
						|
								class CollectingTest extends \PHPUnit\Framework\TestCase
							 | 
						|
								{
							 | 
						|
								    public function testHandleError() {
							 | 
						|
								        $errorHandler = new Collecting();
							 | 
						|
								        $this->assertFalse($errorHandler->hasErrors());
							 | 
						|
								        $this->assertEmpty($errorHandler->getErrors());
							 | 
						|
								
							 | 
						|
								        $errorHandler->handleError($e1 = new Error('Test 1'));
							 | 
						|
								        $errorHandler->handleError($e2 = new Error('Test 2'));
							 | 
						|
								        $this->assertTrue($errorHandler->hasErrors());
							 | 
						|
								        $this->assertSame([$e1, $e2], $errorHandler->getErrors());
							 | 
						|
								
							 | 
						|
								        $errorHandler->clearErrors();
							 | 
						|
								        $this->assertFalse($errorHandler->hasErrors());
							 | 
						|
								        $this->assertEmpty($errorHandler->getErrors());
							 | 
						|
								    }
							 | 
						|
								}
							 | 
						|
								
							 |