Codeception / Codeception/AspectMock

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

未关闭
#127 4 条评论 0 个 reaction 已指派 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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先阅读 PHP 关于 final 方法的文档以及 PHPUnit 的测试替身部分。将预期行为定义为仅在测试执行期间移除 final,然后确定 AspectMock 应如何覆盖当前无法进行 stub 或 mock 的类和方法。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
testing
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。