Skip to content

Laravel setup

Johannes Skov Frandsen edited this page Sep 7, 2015 · 1 revision

It's simple to use VisualPHPUnit with Laravel. Assuming you have successfully installed with the above instructions, and the sample tests run, you need only do the following:

  1. In app/config/bootstrap.php add the path to your Laravel project's tests directory to the test_directories array (eg: '/var/www/laravel/tests')
  2. In app/config/bootstrap.php add your Laravel project's autoload.php to the bootstraps array (eg: '/var/www/laravel/bootstrap/autoload.php')
  3. Now reload VisualPHPUnit and run the tests from your Laravel project.

Clone this wiki locally