Codeception/AspectMock Parent class not found by locator i Yii2
0 I'm trying to use Codeception/AspectMock in Yii2 tests. I have two classes: One: namespace backendbaseModel; class BaseModel public static function getId() return 9; Second: use backendbaseModelBaseModel; class ModelA extends BaseModel public static function getId() return 5; I am trying to test ModelA: class TestModel extends CodeceptionTestUnit public function testGetId() test::double(ModelA::getId(), ['getId' => 7]); $this->assertSame(7, ModelA::getId()); I will do the test with an error: 1) TestMode: Get id Test tests/unit/TestModelTest.php:testGetId [InvalidArgumentException] Class backendbaseModelBaseModel was not found by locator #1 /var/www/vendor/goaop/parser-reflection/src/ReflectionEngine.php:125 #2 /var/www/vendor/goaop/parser-reflection/src/ReflectionEngine.php:140 #3 /var/www/vendor/goaop/parser-reflection/src/ReflectionClass.php:44 #4 /var/www/vendor/goaop/parser-reflection/src/ReflectionClass.php:150 #5 /var/www/vendor/goa...