replace PHPUnit annotations with attributes (#5608)

This commit is contained in:
Kevin Papst
2025-08-11 18:57:42 +02:00
committed by GitHub
parent 04331420ae
commit 24778d3ffb
599 changed files with 1778 additions and 2313 deletions

View File

@@ -19,13 +19,12 @@ use App\Export\RendererInterface;
use App\Export\ServiceExport;
use App\Export\TimesheetExportInterface;
use App\Export\TimesheetExportRepository;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
/**
* @covers \App\DependencyInjection\Compiler\ExportServiceCompilerPass
*/
#[CoversClass(ExportServiceCompilerPass::class)]
class ExportServiceCompilerPassTest extends TestCase
{
private function getContainer(): ContainerBuilder

View File

@@ -22,13 +22,12 @@ use App\Invoice\Renderer\DocxRenderer;
use App\Invoice\RendererInterface;
use App\Invoice\ServiceInvoice;
use App\Repository\TimesheetInvoiceItemRepository;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
/**
* @covers \App\DependencyInjection\Compiler\InvoiceServiceCompilerPass
*/
#[CoversClass(InvoiceServiceCompilerPass::class)]
class InvoiceServiceCompilerPassTest extends TestCase
{
private function getContainer(): ContainerBuilder

View File

@@ -13,13 +13,12 @@ use App\DependencyInjection\Compiler\TwigContextCompilerPass;
use App\Export\ServiceExport;
use App\Twig\Configuration;
use App\Twig\Context;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
/**
* @covers \App\DependencyInjection\Compiler\TwigContextCompilerPass
*/
#[CoversClass(TwigContextCompilerPass::class)]
class TwigContextCompilerPassTest extends TestCase
{
private function getContainer(): ContainerBuilder

View File

@@ -14,13 +14,12 @@ use App\Widget\Type\ActiveTimesheets;
use App\Widget\Type\ActiveUsersMonth;
use App\Widget\WidgetInterface;
use App\Widget\WidgetService;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
/**
* @covers \App\DependencyInjection\Compiler\WidgetCompilerPass
*/
#[CoversClass(WidgetCompilerPass::class)]
class WidgetCompilerPassTest extends TestCase
{
private function getContainer(): ContainerBuilder