我创建new SoapClient('soap/SpService.wsdl', $options);
php artisan serve 运行正常
phpunit测试时候提示
PHP Warning: Uncaught exception 'ErrorException' with message 'SoapClient::SoapClient(): I/O warning : failed to load external entity "soap/SpService.wsdl"
如果我用SoapClient('public/soap/SpService.wsdl', $options);
phpunit又可以运行,但是laravel执行找不到wsdl
肯定是加载这个wsdl路径问题,怎么统一一个访问路径?
laravel public_path('soap/SpService.wsdl')
Solved! ! ! , see what time it is now, or a newbie who is not familiar with php, and has been struggling to this point.