From 37ba75cd454b30e9589e938a9e484f98a614ed44 Mon Sep 17 00:00:00 2001 From: Seb Kay Date: Wed, 4 Oct 2023 10:59:41 +0100 Subject: [PATCH] Install `yoast/phpunit-polyfills` --- composer.json | 3 ++- composer.lock | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 748ee7f..63b4bfa 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,8 @@ "wp-cli/wp-config-transformer": "^1.2", "symfony/process": "^5.3", "php-stubs/wordpress-stubs": "^5.8", - "vlucas/phpdotenv": "^5.5" + "vlucas/phpdotenv": "^5.5", + "yoast/phpunit-polyfills": "^2.0" }, "require-dev": { "spatie/ray": "^1.26", diff --git a/composer.lock b/composer.lock index 2a03420..c3b5a68 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "78462b853fbbdf6ccd1a2bde3632e322", + "content-hash": "774b84689fcc66e0f9a5571d06893d88", "packages": [ { "name": "graham-campbell/result-type", @@ -3568,6 +3568,66 @@ "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.3" }, "time": "2023-04-26T19:51:31+00:00" + }, + { + "name": "yoast/phpunit-polyfills", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/Yoast/PHPUnit-Polyfills.git", + "reference": "c758753e8f9dac251fed396a73c8305af3f17922" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/c758753e8f9dac251fed396a73c8305af3f17922", + "reference": "c758753e8f9dac251fed396a73c8305af3f17922", + "shasum": "" + }, + "require": { + "php": ">=5.6", + "phpunit/phpunit": "^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" + }, + "require-dev": { + "yoast/yoastcs": "^2.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + } + }, + "autoload": { + "files": [ + "phpunitpolyfills-autoload.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Team Yoast", + "email": "support@yoast.com", + "homepage": "https://yoast.com" + }, + { + "name": "Contributors", + "homepage": "https://github.com/Yoast/PHPUnit-Polyfills/graphs/contributors" + } + ], + "description": "Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests", + "homepage": "https://github.com/Yoast/PHPUnit-Polyfills", + "keywords": [ + "phpunit", + "polyfill", + "testing" + ], + "support": { + "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues", + "source": "https://github.com/Yoast/PHPUnit-Polyfills" + }, + "time": "2023-06-06T20:28:24+00:00" } ], "packages-dev": [