Codeception / Codeception/AspectMock

verifyNeverInvoked retuns false positive results

Open
#165 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
784
Forks
132
PR merge metrics
No merged PRs in 30d

Description

When I use this method in this way
```
$WS->verifyNeverInvoked('callFactory', ['0', 'myCalledMethod', [
'firstid' => 123,
'secondId' => 123,
'thirdId' => 124567,
'data' => [
'value' => 456
],
]]);
```
The test appeares as OK (green tick) even if the method «myCalledMethod» was called before with the same arguments

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the verifyNeverInvoked entry point and reproduce the shown call using the same arguments. Trace how prior invocations are compared; done means an earlier identical call to myCalledMethod is reported as a failure rather than passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.