99namespace Propel \Tests \Common \Config ;
1010
1111use org \bovigo \vfs \vfsStream ;
12+ use PHPUnit \Framework \Attributes \DataProvider ;
1213use Propel \Common \Config \ConfigurationManager ;
1314use Propel \Common \Config \Exception \InvalidArgumentException ;
1415use Propel \Tests \TestCase ;
@@ -460,10 +461,9 @@ classname: Propel\Runtime\Connection\DebugPDO
460461 }
461462
462463 /**
463- * @dataProvider providerForInvalidConnections
464- *
465464 * @return void
466465 */
466+ #[DataProvider('providerForInvalidConnections ' )]
467467 public function testRuntimeOrGeneratorConnectionIsNotInConfiguredConnectionsThrowsException ($ yamlConf , $ section )
468468 {
469469 $ this ->expectException (InvalidConfigurationException::class);
@@ -473,10 +473,9 @@ public function testRuntimeOrGeneratorConnectionIsNotInConfiguredConnectionsThro
473473 }
474474
475475 /**
476- * @dataProvider providerForInvalidDefaultConnection
477- *
478476 * @return void
479477 */
478+ #[DataProvider('providerForInvalidDefaultConnection ' )]
480479 public function testRuntimeOrGeneratorDefaultConnectionIsNotInConfiguredConnectionsThrowsException ($ yamlConf , $ section )
481480 {
482481 $ this ->expectException (InvalidConfigurationException::class);
@@ -864,7 +863,7 @@ classname: Propel\Runtime\Connection\DebugPDO
864863 /**
865864 * @return array<array>
866865 */
867- public function deflateConfigurationDataProvider (): array
866+ public static function deflateConfigurationDataProvider (): array
868867 {
869868 return [
870869 [['foo ' => 42 ], ['foo ' => 42 ]],
@@ -874,12 +873,12 @@ public function deflateConfigurationDataProvider(): array
874873 }
875874
876875 /**
877- * @dataProvider deflateConfigurationDataProvider
878- *
879876 * @param array $flattenedConfig
880877 * @param array $expectedArray
878+ *
881879 * @return void
882880 */
881+ #[DataProvider('deflateConfigurationDataProvider ' )]
883882 public function testDeflateConfiguration (array $ flattenedConfig , array $ expectedArray )
884883 {
885884 $ actualArray = ConfigurationManager::deflateConfigurationArray ($ flattenedConfig );
0 commit comments