Skip to content

Commit 5220d79

Browse files
committed
Use PHPUnit Polyfills v4
1 parent 4865fa1 commit 5220d79

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"wp-cli/eval-command": "^1 || ^2",
2424
"wp-cli/wp-cli": "^2.12",
2525
"wp-coding-standards/wpcs": "^3",
26-
"yoast/phpunit-polyfills": "^1.0.3 || ^2.0.1"
26+
"yoast/phpunit-polyfills": "^4.0.0"
2727
},
2828
"require-dev": {
2929
"roave/security-advisories": "dev-latest"

tests/tests/TestBehatTags.php

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

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

67
class TestBehatTags extends TestCase {
78

@@ -37,6 +38,7 @@ protected function tear_down(): void {
3738
* @param string $env
3839
* @param string $expected
3940
*/
41+
#[DataProvider('data_behat_tags_wp_version_github_token')]
4042
public function test_behat_tags_wp_version_github_token( $env, $expected ): void {
4143
$env_wp_version = getenv( 'WP_VERSION' );
4244
$env_github_token = getenv( 'GITHUB_TOKEN' );

0 commit comments

Comments
 (0)