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

PHPUnitのバージョンアップ #4956

Merged
merged 2 commits into from
Mar 15, 2021
Merged

Conversation

nanasess
Copy link
Contributor

@nanasess nanasess commented Mar 10, 2021

概要(Overview・Refs Issue)

  • PHPUnit6.5にバージョン固定されていたのを解除
  • PHP7.2+ の場合は PHPUnit8.x を使用
  • PHP7.1 の場合は PHPUnit7.5 を使用
  • Codeception 4.1.x にバージョンアップ

方針(Policy)

  • PHPUnit6.5に依存しないよう修正
  • simple-phpunit のバージョン自動選択機能を動くようにする

実装に関する補足(Appendix)

PHP7.4 の環境では、メモリの使用量を大幅に削減(50%程度)できているはず

テスト(Test)

Github Actions のテストが通るのを確認

相談(Discussion)

  • setUp() 及び tearDown() を protected にしたい
    • PHPUnit9 からは protected function setUp(): void としないと動かない

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更
  • フックポイントの呼び出しタイミングの変更
  • フックポイントのパラメータの削除・データ型の変更
  • twigファイルに渡しているパラメータの削除・データ型の変更
  • Serviceクラスの公開関数の、引数の削除・データ型の変更
  • 入出力ファイル(CSVなど)のフォーマット変更

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

PHPUnit6.5の依存を解消する

- PHP7.2+ の場合は PHPUnit8.x
- PHP7.1 の場合は PHPUnit7.5
- Codeception 4.1.x にバージョンアップ
webdriver のバージョンアップに伴いラベルをクリックできなくなったため
@okazy okazy added the improvement 機能改善 label Mar 11, 2021
@okazy okazy added this to the 4.1 milestone Mar 11, 2021
Copy link
Contributor

@okazy okazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!
テスト通っているので問題ないと思います!

@okazy okazy merged commit 2ee7acf into EC-CUBE:4.1-core Mar 15, 2021
@okazy
Copy link
Contributor

okazy commented Mar 15, 2021

ありがとうございます!マージしました。

nanasess added a commit to nanasess/ec-cube that referenced this pull request Mar 15, 2021
まだエラーになるので EC-CUBE#4956 の修
正を取り込んでみる
@nanasess nanasess deleted the bump-phpunit branch October 3, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants