Codeception / Codeception/AspectMock
Cannot verify parent method invocation
Aperta
- Lingua principale
- PHP
- Stelle
- 784
- Fork
- 132
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.