`setUpBeforeClass` isn't called before setting up data providers
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
issue では、ファイル、テスト、エントリーポイントが特定されていません。まず、setUpBeforeClass で初期化され、data provider から使用される型付き static プロパティを使って失敗を再現します。セットアップの順序を追跡し、手動のセットアップ呼び出しを必要とせずに、provider の実行前にプロパティが初期化されていることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
I updated all my dependencies, and now the constructors are marked final.
So, I set up a static class property in setUpBeforeClass instead, but when I try to run the test, I get
Error: Typed static property Test::$property must not be accessed before initialization
I have a workaround by calling self::setUpBeforeClass(); at the top of the data providers, and ensuring the logic in setUpBeforeClass handles being run multiple times.
- 主要言語
- PHP
- スター
- 4.9k
- フォーク
- 1.3k
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeception/Codeception のほかの issue
-
PHP 8.6 deprecation: `spl_object_hash()`対応中かも @W0rma が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Codeception/Codeception#6972 ·
メンテナーはふだん 4 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
Codeception/Codeception#6971 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
Codeception/Codeception#6923 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
Codeception/Codeception#6894 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
Codeception/Codeception#6883 ·
メンテナーはふだん 4 日以内に返信
Codeception/Codeception の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
taskforcesh/bullmq#5238 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it対応中かも @bfs2021 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Automattic/jetpack#55517 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
-
area/import type/enhancement when/later
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信