S
S
Silm2014-12-10 17:46:00
phpstorm
Silm, 2014-12-10 17:46:00

How to set up PHPStorm for PHPUnit testing Laravel (via Vagrant Box: Laravel Homestead)?

I work from under windows, the project on Laravel works through Vagrant Box: Laravel Homestead. I can’t get PHPStorm to work with PHPUnit in any way, I create a new PHPUnit on Server configuration, the Homestead box is specified as the server (the connection test is successful), I configured the rest of the parameters in different ways, but the result is always the same, after running the test log in the PHPUnit IDE:

Testing started at 18:44 ...
Uploading test files to Homestead...
Executing tests
Http request failed: HTTP/1.1 404 Not Found
No input file specified.
Cleaning up...

Windows 8.1
PHPStorm 8.0.1
Laravel 4.0
PHPUnit 4.3
PHP 5.6

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav, 2014-12-28
@Silm

Homestead, Laravel 4, PHPStorm 8.0.1.
In Settings -> PHP I set Interpreter: Remote PHP 5.x;
PHPUnit Settings:
Run config:
Works for me :)

D
Dmitry Mironov, 2014-12-10
@MironovDV

As far as I know, PHPStorm uploads tests to the server, and runs them via http, apparently you get 404 when you request. But I don’t know how and where PHPStorm makes the request...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question