88use Mpyw \LaravelMySqlSystemVariableManager \MySqlConnection ;
99use Mpyw \LaravelMySqlSystemVariableManager \Replacer ;
1010use Mpyw \LaravelMySqlSystemVariableManager \Value ;
11+ use PHPUnit \Framework \Attributes \DataProvider ;
1112
1213class BasicVariableAssignmentTest extends TestCase
1314{
1415 /**
15- * @test
1616 * @param mixed $expectedOriginal
1717 * @param mixed $newValue
1818 * @param mixed $expectedChanged
19- * @dataProvider provideBasicVariables
2019 */
20+ #[DataProvider('provideBasicVariables ' )]
2121 public function testAssignments (string $ variableName , bool $ emulated , $ expectedOriginal , $ newValue , $ expectedChanged ): void
2222 {
2323 $ this ->{$ emulated ? 'onEmulatedConnection ' : 'onNativeConnection ' }(function (MySqlConnection $ db ) use ($ variableName , $ expectedOriginal , $ newValue , $ expectedChanged ): void {
@@ -28,12 +28,11 @@ public function testAssignments(string $variableName, bool $emulated, $expectedO
2828 }
2929
3030 /**
31- * @test
3231 * @param mixed $expectedOriginal
3332 * @param mixed $newValue
3433 * @param mixed $expectedChanged
35- * @dataProvider provideBasicVariables
3634 */
35+ #[DataProvider('provideBasicVariables ' )]
3736 public function testTemporaryAssignments (string $ variableName , bool $ emulated , $ expectedOriginal , $ newValue , $ expectedChanged ): void
3837 {
3938 $ this ->{$ emulated ? 'onEmulatedConnection ' : 'onNativeConnection ' }(function (MySqlConnection $ db ) use ($ variableName , $ expectedOriginal , $ newValue , $ expectedChanged ): void {
0 commit comments