30 lines
		
	
	
		
			829 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			30 lines
		
	
	
		
			829 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								declare(strict_types=1);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace Drupal\Tests;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use Drupal\TestTools\PhpUnitCompatibility\RunnerVersion;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// In order to manage different method signatures between PHPUnit versions, we
							 | 
						||
| 
								 | 
							
								// dynamically load a compatibility trait dependent on the PHPUnit runner
							 | 
						||
| 
								 | 
							
								// version.
							 | 
						||
| 
								 | 
							
								class_alias("Drupal\TestTools\PhpUnitCompatibility\PhpUnit" . RunnerVersion::getMajor() . "\TestCompatibilityTrait", 'Drupal\Tests\PhpUnitCompatibilityTrait');
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// Allow static analysis to find a trait.
							 | 
						||
| 
								 | 
							
								if (FALSE) {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  /**
							 | 
						||
| 
								 | 
							
								   * Makes Drupal's test API forward compatible with future PHPUnit releases.
							 | 
						||
| 
								 | 
							
								   *
							 | 
						||
| 
								 | 
							
								   * This stub is present here to allow PHPStan identify the methods present
							 | 
						||
| 
								 | 
							
								   * in the version-bound trait.
							 | 
						||
| 
								 | 
							
								   */
							 | 
						||
| 
								 | 
							
								  trait PhpUnitCompatibilityTrait {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    use \Drupal\TestTools\PhpUnitCompatibility\PhpUnit10\TestCompatibilityTrait;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								}
							 |