Open gglazewski opened 4 years ago
Yii2 does not use a Kernel, so this error is likely not related to Yii
Replace Yii2 autoloader by composer autoloader.
@SamMousa This Kernel belongs to AspectMock: https://github.com/Codeception/AspectMock/blob/master/src/AspectMock/Kernel.php
Using Yii2,
As soon as I extend my controllers with a custom class or implement custom interface I get following errors:
Unfortunately, to keep my tests working I had to remove my interface. But I cannot remove my BaseController.
My Kernel is defined like so in __bootstrap.php
Is this a known problem or am I doing something obviously wrong?
I created SO question as well: https://stackoverflow.com/questions/59751752/error-class-was-not-found-by-locator-when-running-tests