Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update phpunit-compatibility-and-wordpress-versions.md #166

Merged
merged 2 commits into from
Aug 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions core/references/phpunit-compatibility-and-wordpress-versions.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
<!--
# PHPUnit Compatibility and WordPress Versions
-->
# PHPUnit の互換性と WordPress のバージョン

<!--
Changes to supported [PHPUnit](https://phpunit.de/index.html) versions have been as followed:
-->
サポートされている [PHPUnit](https://phpunit.de/index.html) バージョンの過去の変更は以下のとおりです。

<!--
* In WordPress 4.4: Added support for PHPUnit 5 was added on PHP 7.0.
* In WordPress 4.7: Added support for PHPUnit 6 on PHP 7.0 and 7.1.
* In WordPress 5.1: Added support for PHPUnit 7 on PHP 7.1, 7.2, and 7.3. PHP 7.0 remains at PHPUnit 6.
* In WordPress 5.2: Added support for PHPUnit 7 on PHP 7.0, and PHPUnit 5 on PHP 5.6.
* In WordPress 5.9: Added a dependency on the external [PHPUnit Polyfills](https://github.com/Yoast/PHPUnit-Polyfills/), which enabled support for PHPUnit 8 and 9, making it so the tests can now run on the most appropriate PHPUnit version for each PHP version.
* In WordPress 6.3: [Dropped support for PHP 5.6](https://make.wordpress.org/core/2023/07/05/dropping-support-for-php-5/) and thus PHPUnit 5.
-->
* WordPress 4.4: PHPUnit 5 のサポートを PHP 7.0 に追加。
* WordPress 4.7: PHPUnit 6 のサポートを PHP 7.0、7.1 に追加。
* WordPress 5.1: PHPUnit 7 のサポートを PHP 7.1、7.2、7.3 に追加。PHP 7.0 は PHPUnit 6 のまま。
* WordPress 5.2: PHPUnit 7 のサポートを PHP 7.0 に、PHPUnit 5 のサポートを PHP 5.6 に追加。
* WordPress 5.9: 外部 [PHPUnit ポリフィル](https://github.com/Yoast/PHPUnit-Polyfills/)への依存関係を追加。これにより、PHPUnit 8、9 のサポートが有効になり、各 PHP バージョンに最も最適な PHPUnit バージョンでテストを実行できるようになりました。
* WordPress 6.3: [PHP 5.6 のサポート廃止](https://make.wordpress.org/core/2023/07/05/dropping-support-for-php-5/)にしたがって、PHPUnit 5 のサポート廃止。

<!--
## Supported Version Chart
-->
## 対応バージョン表

<!--
| WP | PHP Unit Version | [5.2](https://www.php.net/archive/2006.php) | [5.3](https://www.php.net/archive/2009.php#id2009-06-30-1) | [5.4](https://www.php.net/archive/2012.php#id2012-03-01-1) | [5.5](https://www.php.net/archive/2013.php#id2013-06-20-1) | [5.6](https://www.php.net/archive/2014.php#id2014-08-28-1) | [7.0](https://www.php.net/archive/2015.php#id2015-12-03-1) | [7.1](https://www.php.net/archive/2016.php#id2016-12-01-3) | [7.2](https://www.php.net/archive/2017.php#id2017-11-30-1) | [7.3](https://www.php.net/archive/2018.php#id2018-12-06-1) | [7.4](https://www.php.net/archive/2019.php#2019-11-28-1) | [8.0](https://www.php.net/archive/2020.php#2020-11-26-3) | [8.1](https://www.php.net/archive/2021.php#2021-11-25-1) | [8.2](https://www.php.net/archive/2022.php#2022-12-08-1) |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| [6.3](https://wordpress.org/news/2023/08/lionel/) | x | x | x | x | x | 6 | 7 | 8 | 9 | 9 | 9 | 9 | 9 |
Expand Down Expand Up @@ -40,5 +58,38 @@ Changes to supported [PHPUnit](https://phpunit.de/index.html) versions have been
| [3.9](https://wordpress.org/news/2014/04/smith/) | 3.6 | 4 | 4 | 4 | x | x | x | x | x | x | x | x | x |
| [3.8](https://wordpress.org/news/2013/12/parker/) | 3.6 | 4 | 4 | 4 | x | x | x | x | x | x | x | x | x |
| [3.7](https://wordpress.org/news/2013/10/basie/) | 3.6 | 4 | 4 | 4 | x | x | x | x | x | x | x | x | x |
-->
| WP / PHP Unit バージョン | [5.2](https://www.php.net/archive/2006.php) | [5.3](https://www.php.net/archive/2009.php#id2009-06-30-1) | [5.4](https://www.php.net/archive/2012.php#id2012-03-01-1) | [5.5](https://www.php.net/archive/2013.php#id2013-06-20-1) | [5.6](https://www.php.net/archive/2014.php#id2014-08-28-1) | [7.0](https://www.php.net/archive/2015.php#id2015-12-03-1) | [7.1](https://www.php.net/archive/2016.php#id2016-12-01-3) | [7.2](https://www.php.net/archive/2017.php#id2017-11-30-1) | [7.3](https://www.php.net/archive/2018.php#id2018-12-06-1) | [7.4](https://www.php.net/archive/2019.php#2019-11-28-1) | [8.0](https://www.php.net/archive/2020.php#2020-11-26-3) | [8.1](https://www.php.net/archive/2021.php#2021-11-25-1) | [8.2](https://www.php.net/archive/2022.php#2022-12-08-1) |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| [6.3](https://wordpress.org/news/2023/08/lionel/) | x | x | x | x | x | 6 | 7 | 8 | 9 | 9 | 9 | 9 | 9 |
| [6.2](https://wordpress.org/news/2023/03/dolphy/) | x | x | x | x | 5 | 6 | 7 | 8 | 9 | 9 | 9 | 9 | 9 |
| [6.1](https://wordpress.org/news/2022/11/misha/) | x | x | x | x | 5 | 6 | 7 | 8 | 9 | 9 | 9 | 9 | 9 |
| [6.0](https://wordpress.org/news/2022/05/arturo/) | x | x | x | x | 5 | 6 | 7 | 8 | 9 | 9 | 9 | 9 | x |
| [5.9](https://wordpress.org/news/2022/01/josephine/) | x | x | x | x | 5 | 6 | 7 | 8 | 9 | 9 | 9 | 9 | x |
| [5.8](https://wordpress.org/news/2021/07/tatum/) | x | x | x | x | 5 | 5 | 7 | 7 | 7 | 7 | 7\* | x | x |
| [5.7](https://wordpress.org/news/2021/03/esperanza/) | x | x | x | x | 5 | 5 | 7 | 7 | 7 | 7 | 7\* | x | x |
| [5.6](https://wordpress.org/news/2020/12/simone/) | x | x | x | x | 5 | 5 | 7 | 7 | 7 | 7 | 7\* | x | x |
| [5.5](https://wordpress.org/news/2020/08/wordpress-5-5-eckstine/) | x | x | x | x | 5 | 5 | 7 | 7 | 7 | 7 | x | x | x |
| [5.4](https://wordpress.org/news/2020/03/adderley/) | x | x | x | x | 5 | 5 | 7 | 7 | 7 | 7 | x | x | x |
| [5.3](https://wordpress.org/news/2019/11/kirk/) | x | x | x | x | 5 | 5 | 7 | 7 | 7 | 7 | x | x | x |
| [5.2](https://wordpress.org/news/2019/05/jaco/) | x | x | x | x | 5 | 5 | 7 | 7 | 7 | x | x | x | x |
| [5.1](https://wordpress.org/news/2019/02/betty/) | 3.6 | 4 | 4 | 4 | 4 | 6 | 7 | 7 | 7 | x | x | x | x |
| [5.0](https://wordpress.org/news/2018/12/bebo/) | 3.6 | 4 | 4 | 4 | 4 | 6 | 6 | 6 | 6 | x | x | x | x |
| [4.9](https://wordpress.org/news/2017/11/tipton/) | 3.6 | 4 | 4 | 4 | 4 | 6 | 6 | 6 | x | x | x | x | x |
| [4.8](https://wordpress.org/news/2017/06/evans/) | 3.6 | 4 | 4 | 4 | 4 | 6 | 6 | x | x | x | x | x | x |
| [4.7](https://wordpress.org/news/2016/12/vaughan/) | 3.6 | 4 | 4 | 4 | 4 | 6 | 6 | x | x | x | x | x | x |
| [4.6](https://wordpress.org/news/2016/08/pepper/) | 3.6 | 4 | 4 | 4 | 4 | 5 | x | x | x | x | x | x | x |
| [4.5](https://wordpress.org/news/2016/04/coleman/) | 3.6 | 4 | 4 | 4 | 4 | 5 | x | x | x | x | x | x | x |
| [4.4](https://wordpress.org/news/2015/12/clifford/) | 3.6 | 4 | 4 | 4 | 4 | 5 | x | x | x | x | x | x | x |
| [4.3](https://wordpress.org/news/2015/08/billie/) | 3.6 | 4 | 4 | 4 | 4 | x | x | x | x | x | x | x | x |
| [4.2](https://wordpress.org/news/2015/04/powell/) | 3.6 | 4 | 4 | 4 | 4 | x | x | x | x | x | x | x | x |
| [4.1](https://wordpress.org/news/2014/12/dinah/) | 3.6 | 4 | 4 | 4 | 4 | x | x | x | x | x | x | x | x |
| [4.0](https://wordpress.org/news/2014/09/benny/) | 3.6 | 4 | 4 | 4 | x | x | x | x | x | x | x | x | x |
| [3.9](https://wordpress.org/news/2014/04/smith/) | 3.6 | 4 | 4 | 4 | x | x | x | x | x | x | x | x | x |
| [3.8](https://wordpress.org/news/2013/12/parker/) | 3.6 | 4 | 4 | 4 | x | x | x | x | x | x | x | x | x |
| [3.7](https://wordpress.org/news/2013/10/basie/) | 3.6 | 4 | 4 | 4 | x | x | x | x | x | x | x | x | x |

<!--
**\*** The core test suite in these branches runs a modified version of PHPUnit 7 (which on its own is not compatible) on PHP 8. See [#50902](https://core.trac.wordpress.org/ticket/50902) for more information.
-->
**\*** これらのブランチのコアテストスイートは、PHPUnit 7 の修正バージョン (それ自体には互換性がありません) を PHP 8 上で実行します。詳しくは、[#50902](https://core.trac.wordpress.org/ticket/50902) を参照してください。