class VersionSanitizerTest extends TestCase
{ /**
* @dataProvider versionProvider
*/
public function testSanitizePluginVersion(string
$version, string
$expectedVersion): void
{ $sanitizedVersion =
(new VersionSanitizer())->
sanitizePluginVersion($version);
static::
assertSame($expectedVersion,
$sanitizedVersion);
} /**
* @return list<array{string, string}>
*/
public static function versionProvider(): array
{ return [ ['1.2.3.4', '1.2.3'
],
[