解决无法找到类PHPUnit_Extensions_SeleniumTestCase错误的方法如下:
composer require --dev phpunit/phpunit
composer require --dev phpunit/phpunit-selenium
use PHPUnit\Extensions\SeleniumTestCase;
composer update --dev phpunit/phpunit
composer update --dev phpunit/phpunit-selenium
composer require --dev codeception/codeception
composer require --dev codeception/module-phpbrowser
composer require --dev codeception/module-asserts
然后按照Codeception的文档来编写测试用例。
领取专属 10元无门槛券
手把手带您无忧上云