mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Migrate from PHPUnit annotations to native attributes
This commit is contained in:
@@ -5,6 +5,8 @@ declare(strict_types=1);
|
||||
namespace ShlinkioTest\Shlink\Core\Functions;
|
||||
|
||||
use BackedEnum;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Shlinkio\Shlink\Core\Config\EnvVars;
|
||||
use Shlinkio\Shlink\Core\Model\DeviceType;
|
||||
@@ -18,9 +20,8 @@ class FunctionsTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @param class-string<BackedEnum> $enum
|
||||
* @test
|
||||
* @dataProvider provideEnums
|
||||
*/
|
||||
#[Test, DataProvider('provideEnums')]
|
||||
public function enumValuesReturnsExpectedValueForEnum(string $enum, array $expectedValues): void
|
||||
{
|
||||
self::assertEquals($expectedValues, enumValues($enum));
|
||||
|
||||
Reference in New Issue
Block a user