Sunday, March 12, 2017

PHPUnit test with XAMPP localhost instead of laravel artisan serve

I have unit tests (not dusk browser test) setup on laravel 5.4, I have configured the baseUrl in phpunit.xml to

http://localhost/TestApp/public

but when I run

vendor\bin\phpunit

to assert the status is 200 I get the failed test saying the status returned is 404 while on the browser I can access the URL.



via Erick

Advertisement