11
11
12
12
namespace Symfony \Component \Mailer \Test ;
13
13
14
+ use PHPUnit \Framework \Attributes \DataProvider ;
14
15
use PHPUnit \Framework \TestCase ;
15
16
use Psr \Log \LoggerInterface ;
16
17
use Symfony \Component \Mailer \Exception \IncompleteDsnException ;
@@ -66,6 +67,7 @@ public static function incompleteDsnProvider(): iterable
66
67
/**
67
68
* @dataProvider supportsProvider
68
69
*/
70
+ #[DataProvider('supportsProvider ' )]
69
71
public function testSupports (Dsn $ dsn , bool $ supports )
70
72
{
71
73
$ factory = $ this ->getFactory ();
@@ -76,6 +78,7 @@ public function testSupports(Dsn $dsn, bool $supports)
76
78
/**
77
79
* @dataProvider createProvider
78
80
*/
81
+ #[DataProvider('createProvider ' )]
79
82
public function testCreate (Dsn $ dsn , TransportInterface $ transport )
80
83
{
81
84
$ factory = $ this ->getFactory ();
@@ -89,6 +92,7 @@ public function testCreate(Dsn $dsn, TransportInterface $transport)
89
92
/**
90
93
* @dataProvider unsupportedSchemeProvider
91
94
*/
95
+ #[DataProvider('unsupportedSchemeProvider ' )]
92
96
public function testUnsupportedSchemeException (Dsn $ dsn , ?string $ message = null )
93
97
{
94
98
$ factory = $ this ->getFactory ();
@@ -104,6 +108,7 @@ public function testUnsupportedSchemeException(Dsn $dsn, ?string $message = null
104
108
/**
105
109
* @dataProvider incompleteDsnProvider
106
110
*/
111
+ #[DataProvider('incompleteDsnProvider ' )]
107
112
public function testIncompleteDsnException (Dsn $ dsn )
108
113
{
109
114
$ factory = $ this ->getFactory ();
0 commit comments