test(dump): replace @dataProvider annotations with #[DataProvider] attributes

The installed PHPUnit (12.x, ahead of this plugin's ^10.0 dev
constraint) no longer parses the @dataProvider PHPDoc annotation,
so both tests silently ran their data-provider method with zero
arguments and failed with ArgumentCountError.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 12:39:08 +02:00
co-authored by Claude-Bot
parent e5c3a5b28f
commit 6094b6f49c
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -3,13 +3,12 @@
namespace AeonDumpManager\Tests\Service;
use AeonDumpManager\Service\MySqlVariant;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
class MySqlVariantTest extends TestCase
{
/**
* @dataProvider versionProvider
*/
#[DataProvider('versionProvider')]
public function testIsMariaDb(string $version, bool $expected): void
{
self::assertSame($expected, MySqlVariant::isMariaDb($version));