phpunit failed to create SoapClient in laravel wsdl path not found
仅有的幸福
仅有的幸福 2017-05-16 13:02:13
0
1
1046

I created new SoapClient('soap/SpService.wsdl', $options);
php artisan serve runs normally

Prompt when testing phpunit
PHP Warning: Uncaught exception 'ErrorException' with message 'SoapClient::SoapClient(): I/O warning: failed to load external entity "soap/SpService.wsdl"

If I use SoapClient('public/soap/SpService.wsdl', $options);
phpunit can run again, but laravel execution cannot find wsdl

It must be a problem with loading the wsdl path. How to unify the access path?

仅有的幸福
仅有的幸福

reply all(1)
过去多啦不再A梦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template