Codeception / Codeception/AspectMock
Cannot verify parent method invocation
Offen
- Vorherrschende Sprache
- PHP
- Sterne
- 784
- Forks
- 132
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.