Codeception / Codeception/AspectMock
Cannot verify parent method invocation
Open
- Dominant language
- PHP
- Stars
- 784
- Forks
- 132
- PR merge metrics
- No merged PRs in 30d
Description
It seems like method invocation via `verifyInvoked*()` only works on double instances but not for `parent::` method calls. Example:
``` php
class ParentClass {
public function hello() {
echo 'Hello';
}
}
class ChildClass extends ParentClass {
public function hello() {
parent::hello();
echo ' World';
}
}
test::double(ParentClass::class, ['hello']);
$c = new ChildClass();
$c->hello();
```
How would one verify that `ParentClass::hello` was invoked?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.