我在下面有这个测试类,我只想从中运行一个测试,例如“ aboutPage”。有什么想法吗? 这就是我仅运行此文件的方式: codecept run tests/acceptance/VisitorCest.php 但是现在我只想从该文件运行一个测试。 <?php use \AcceptanceTester; class VisitorCest { public function _before(){} public function _after(){} public function aboutPage(AcceptanceTester $I) { $I->wantTo('check about page'); } public function contactPage(AcceptanceTester $I) { $I->wantTo('check contact page'); } }
尝试在Windows(使用wamp)上设置php环境以使用Amazon PHP SDK时,当我尝试运行示例测试时,出现以下错误: Fatal error: Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #10; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\wamp\www\AWSSDKforPHP\lib\requestcore\requestcore.class.php on line 848 我已经将以下行添加到我的php.ini中 curl.cainfo = C:\Windows\ca-bundle.crt 这是我使用此VBS脚本创建的证书的位置 VBS-Script 我也重新启动了WAMP服务。