replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -11,12 +11,11 @@ namespace App\Tests\DependencyInjection;
|
||||
|
||||
use App\DependencyInjection\AppExtension;
|
||||
use App\Tests\Mocks\SystemConfigurationFactory;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
/**
|
||||
* @covers \App\DependencyInjection\AppExtension
|
||||
*/
|
||||
#[CoversClass(AppExtension::class)]
|
||||
class AppExtensionTest extends TestCase
|
||||
{
|
||||
private ?AppExtension $extension = null;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -10,12 +10,11 @@
|
||||
namespace App\Tests\DependencyInjection;
|
||||
|
||||
use App\DependencyInjection\Configuration;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* @covers \App\DependencyInjection\Configuration
|
||||
*/
|
||||
#[CoversClass(Configuration::class)]
|
||||
class ConfigurationTest extends TestCase
|
||||
{
|
||||
protected function getMinConfig($dataDir = '/tmp/')
|
||||
|
||||
Reference in New Issue
Block a user