Skip to content

Commit 739021f

Browse files
committed
Add data provider attribute
1 parent de04095 commit 739021f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tests/TestWPVersionResolverTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use WP_CLI\Utils;
44
use WP_CLI\Tests\TestCase;
5+
use PHPUnit\Framework\Attributes\DataProvider;
56

67
class TestWPVersionResolverTest extends TestCase {
78

@@ -81,6 +82,7 @@ public static function data_wp_version_resolver(): array {
8182
* @param string $env
8283
* @param string $expected
8384
*/
85+
#[DataProvider( 'data_wp_version_resolver' )] // phpcs:ignore PHPCompatibility.Attributes.NewAttributes.PHPUnitAttributeFound
8486
public function test_wp_version_resolver( $env, $expected ): void {
8587
if ( $env ) {
8688
putenv( "WP_VERSION=$env" );

0 commit comments

Comments
 (0)