Codeception / Codeception/AspectMock

How I can delete all final keywords from my class and methods

オープン
#127 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
784
フォーク
132
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm talking about: http://php.net/manual/en/language.oop5.final.php

Why I need this: https://phpunit.de/manual/current/en/test-doubles.html
Final, private and static methods cannot be stubbed or mocked. They are ignored by PHPUnit's test double functionality and retain their original behavior.

Off course I want to delete "final" only during a test execution.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Read the PHP final-method documentation and PHPUnit's test-doubles section first. Define the intended behavior as removing final only during test execution, then determine how AspectMock should cover classes and methods that currently cannot be stubbed or mocked.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
testing
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。