Codeception / Codeception/AspectMock
verifyNeverInvoked retuns false positive results
- 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