replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user