My phpunit.xml also sets up the bootstrap/app.php file in it's bootstrap definition, which is the Laravel default, so that should work fine and the fact that it works without the coverage confuses me.Īm I missing something here? Thank you for your help.
#Phpstorm phpunit install#
I've set up Xdebug on my Vagrant machine on both FPM and CLI as well, and PhpStorm successfully reports that it can detect Xdebug 2.5.5 on my Vagrant box via CLI, so I'm ruling that out as a possibility unless I need to install something extra for the Coverage. I do run setUp() from the parent first as that is supposed to call createApplication() which should take care of booting Laravel if I'm not mistaken. Parent::setUp() // Must run first, Laravel is set up using this parent call // I am using a setUp() call, it's defined as such protected function setUp() Has anyone got this to work before? If so how? The reason for this is because it's not loading the Facade properly and is likely not even booting Laravel. Uncaught Error: Class 'Route' not found in /home/vagrant/project/app/routes.php:5 It's whenever I try to make use of code coverage that it starts failing with the following error: I've defined my default configuration file to be the phpunit.xml file that comes with Laravel by default, and running tests normally without coverage works just fine. home/vagrant/project/tests/Integration/Authentication/AdminLoginTest.php Tests\Integration\Authentication\AdminLoginTest bootstrap /home/vagrant/project/bootstrap/app.php -configuration /home/vagrant/project/phpunit.xml home/vagrant/.phpstorm_helpers/project_AdminLoginTest_coverage verage_enable=1 /home/vagrant/project/vendor/phpunit/phpunit/phpunit -coverage-clover Vagrant:///Users/mymachine/Webdev/project/usr/bin/php I'm using PhpStorm and am trying to use it to make a phpunit call on my Vagrant host to PHPUnit like this: I'm having a strange problem on Laravel 5.5.