Extend test coverage to PHP 8.3

This commit is contained in:
Christian Bläul
2024-08-29 17:05:04 +02:00
parent 27ab8a3e05
commit 259e9a6c31
7 changed files with 69 additions and 6 deletions

17
tests/rector.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\PHPUnit\CodeQuality\Rector\Class_\AddCoversClassAttributeRector;
use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DataProviderAnnotationToAttributeRector;
use Rector\PHPUnit\PHPUnit60\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector;
use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DependsAnnotationWithValueToAttributeRector;
use \Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
return static function(RectorConfig $rectorConfig): void {
$rectorConfig->rule(AddCoversClassAttributeRector::class);
$rectorConfig->rule(DataProviderAnnotationToAttributeRector::class);
$rectorConfig->rule(AddDoesNotPerformAssertionToNonAssertingTestRector::class);
$rectorConfig->rule(DependsAnnotationWithValueToAttributeRector::class);
};