@@ -32,6 +32,7 @@ public static function dataProviderFormatsNames(): array
32
32
/**
33
33
* @dataProvider dataProviderFormatsNames
34
34
*/
35
+ #[\PHPUnit \Framework \Attributes \DataProvider('dataProviderFormatsNames ' )]
35
36
public function testValidFormats (string $ formatName ): void
36
37
{
37
38
$ this ->assertTrue (OutputFormat::checkOutputFormatIsValid ($ formatName ));
@@ -40,6 +41,7 @@ public function testValidFormats(string $formatName): void
40
41
/**
41
42
* @dataProvider dataProviderFormatsNames
42
43
*/
44
+ #[\PHPUnit \Framework \Attributes \DataProvider('dataProviderFormatsNames ' )]
43
45
public function testInValidFormats (string $ formatName ): void
44
46
{
45
47
$ formatName = 'foo ' . $ formatName ;
@@ -54,6 +56,7 @@ public function testInValidFormats(string $formatName): void
54
56
/**
55
57
* @dataProvider dataProviderFormatsNames
56
58
*/
59
+ #[\PHPUnit \Framework \Attributes \DataProvider('dataProviderFormatsNames ' )]
57
60
public function testGetFormatterForChoice (string $ formatName ): void
58
61
{
59
62
$ this ->assertInstanceOf (ErrorFormatter::class, OutputFormat::getFormatterForChoice ($ formatName , new NullRelativePathHelper ()));
@@ -62,6 +65,7 @@ public function testGetFormatterForChoice(string $formatName): void
62
65
/**
63
66
* @dataProvider dataProviderFormatsNames
64
67
*/
68
+ #[\PHPUnit \Framework \Attributes \DataProvider('dataProviderFormatsNames ' )]
65
69
public function testGetFormatterForChoiceInvalid (string $ formatName ): void
66
70
{
67
71
$ formatName = 'foo ' . $ formatName ;
@@ -75,6 +79,7 @@ public function testGetFormatterForChoiceInvalid(string $formatName): void
75
79
/**
76
80
* @dataProvider dataProviderFormatsNames
77
81
*/
82
+ #[\PHPUnit \Framework \Attributes \DataProvider('dataProviderFormatsNames ' )]
78
83
public function testFormatterForChoice (string $ formatName ): void
79
84
{
80
85
OutputFormat::displayUserChoiceFormat (
0 commit comments