PHPUnit 12に備えよう 15 方針2:決められたフォーマットや、 思想に従う • stubでexpectsが使えなくな る(詳しくはこちら ) • expectsを使うなら stubの代 わりにmockを使う #5536 Remove support for configuring expectations using expects() on test stubs
PHPUnit 12に備えよう 17 方針2:決められたフォーマットや、 思想に従う • 特定のオプションでカンマ 区切りが使えなくなる • 1つ1つオプションを指定す る #5710 Remove Support for using comma-separated values with the --group, --exclude-group, --covers, --uses, and --test-suffix CLI options
PHPUnit 12に備えよう 18 方針2:決められたフォーマットや、 思想に従う • 非推奨エラーの報告範囲 を制限する設定が消える • 別の設定へ代替する • ignoreSelfDeprecations • ignoreDirectDeprecations • ignoreIndirectDeprecations #5756 Remove Support for the restrictDeprecations attribute on the <source> element of the XML configuration file
#5416 Remove support for doubling interfaces (or classes) that have a method named method ◦ methodって名前のメソッドを持つクラスやインターフェースをサポートから外す ◦ そもそもmethodって名前のメソッドをつけるんじゃない! • #5801 Remove support for targeting traits with #[CoversClass] and #[UsesClass] attributes ◦ カバレッジ対象 /非対象の設定ができる Attributesから、Traitを対象外にする ◦ Traitをuseしている元のクラスに、カバレッジ対象 /非対称の設定を使用 現実:代替手段はない
Information Our Mission Payment to the People, Power to the People. 自分の好きなことを仕事にしたり経済活動を行っている個人やスモールチームのエンパワーメントを目指しています。 29 BASEBANKで一緒に働くメンバーを大募集中! 絶賛募集中!! - Webアプリケーションエンジニア - シニアエンジニア - テックリード - とにかくエンジニア