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

@@ -25,15 +25,15 @@ use App\Repository\ProjectRepository;
use App\Tests\Mocks\SystemConfigurationFactory;
use App\Utils\Context;
use App\Validator\ValidationFailedException;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Validator\ConstraintViolation;
use Symfony\Component\Validator\ConstraintViolationList;
use Symfony\Component\Validator\Validator\ValidatorInterface;
/**
* @covers \App\Project\ProjectService
*/
#[CoversClass(ProjectService::class)]
class ProjectServiceTest extends TestCase
{
private function getSut(
@@ -172,9 +172,7 @@ class ProjectServiceTest extends TestCase
self::assertNull($project->getCustomer());
}
/**
* @dataProvider getTestData
*/
#[DataProvider('getTestData')]
public function testProjectNumber(string $format, int|string $expected): void
{
$configuration = SystemConfigurationFactory::createStub([