Open micoli opened 7 years ago
I have the same problem, my unit tests sending me messages [InvalidArgumentException] Class ... was not found by locator
That class contains the constant I pass inside argument by default in some other function, and class, containing this function, I am trying to use inside my unit test. The issue is inside a transformer BeforeMockTransformer, line
$reflectedParams = $method->getParameters();
Yii2 Framework "codeception/aspect-mock": "3.0.1"
I had this same problem. It was happening, when autoload function was loading parent class again by autoload function. Yii autoload function was not initializing, only composer.
I stopped using yii namespaces (namespace with app, for example app\models\User) and registered new composer psr-4 namespaces. Now it works!
Hello,
In the following code :
when we launch the test we get the following exception :
Do you have any solution or fix to help us please ?