当我尝试运行一个使用类TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase的功能测试时,我得到一个错误类'TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase‘not found...这是composer自动加载器的问题吗?有什么办法解决这个问题吗?
/usr/bin/php7.4 /mypath/typo3_10/vendor/phpunit/phpunit/phpunit --bootstrap /mypath/typo3_10/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php --configuration /mypath/typo3_10/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests.xml /mypath/typo3_10/web/typo3/sysext/seo --teamcity是PHPStorm中的命令。
发布于 2020-06-18 20:53:53
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Frontend\\Tests\\": "web/typo3/sysext/frontend/Tests/",
"TYPO3\\CMS\\Core\\Tests\\": "web/typo3/sysext/core/Tests/"
}
}解决方案是将缺少的名称空间添加到根composer.json,并再次转储自动加载器
https://stackoverflow.com/questions/62445854
复制相似问题