Fatal error: Class 'TestCase' not found in (laravel) Php Storm
I am creating a new laravel structure from composer and when running on PHP Storm I am facing this error in PHP Storm
Fatal error: Class 'TestCase' not found in C: \ xampp \ htdocs \ testproject \ app \ tests \ ExampleTest.php on line 3
cd C: \ xampp \ htdocs \ testproject Current working directory 'C: \ XAMPP \ HTDOCS \ TestProject'.
phpunit
The program cannot be started "phpunit"
(in the directory "C:\xampp\htdocs\testproject"
): CreateProcess error = 2, the system cannot find the file specified
source to share
I think the laravel path is a setting to be in the root of a specific project and then specify the rest for phpunit.
1.) alias phpunit = 'vendor / bin / phpunit'
Try changing your path to "C: \ xampp \ htdocs \ testproject" then run "alias phpunit = 'vendor / bin / phpunit" then run "phpunit app / tests / ExampleTest.php".
http://culttt.com/2013/05/20/getting-started-with-testing-laravel-4-models/
source to share