Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel - RuntimeException - Could not scan for classes inside "app/tests/TestCase.php"

I've been using Laravel to display a custom blog for a month or so now and it's been working perfectly.

I just took a look at my site and it's saying:

/vendor/symfony/security/Symfony/Component/Security/Core/Util/SecureRandom.php): failed to open stream: No such file or directory

Having looked in the folders the location of the above file is actually:

/vendor/symfony/security-core/Symfony/Component/Security/Core/Util/SecureRandom.php): failed to open stream: No such file or directory

but I haven't changed this?

If I try and run composer update I get this error:

root@server [/laravel]# composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files

  [RuntimeException]
  Could not scan for classes inside "app/tests/TestCase.php" which does not appear to be a file nor a folder

Any ideas what's causing this or how I should go about fixing / debugging it?

like image 205
Dan Avatar asked Jun 22 '14 01:06

Dan


1 Answers

Do you have a app/tests/TestCase.php file on your production server?

If not - you should remove it from composer.json (or put the file back there)

like image 123
Laurence Avatar answered Oct 23 '22 22:10

Laurence