Codeception / Codeception/AspectMock

Best way to return multiple values from mocked methods

未关闭
#45 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
784
派生
132
PR 合并指标
30 天内没有已合并 PR

描述

One of the classes I'm mocking is called few times along the process and from what I read in the docs, I can only return a single value when defining the mock. Is there a way to change the returning values on each call?

贡献指南

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

调研方向

Review the mocking documentation and the existing API for configuring return values, then reproduce the repeated-call scenario described in the issue. Done means establishing and documenting a clear way to provide successive return values, with the behavior confirmed by relevant tests.

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

评估

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

把新 issue 发到你的邮箱

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