我创建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')
解决!!!,看现在是几点,还是新手不熟悉php,折腾到这个点。