Welcome Guest, Not a member yet? Register   Sign In
PHPUnit on Production
#1

Hi,

CodeIgniter 4.5.1

I'm getting the following message on my production server after deploying with GIT

Code:
Warning: require(/home/project/vendor/composer/../phpunit/phpunit/src/Framework/Assert/Functions.php): Failed to open stream: No such file or directory in /home/project/vendor/composer/autoload_real.php on line 55

Note: I've edited the actual project folder names above.

I've removed "phpunit/phpunit": "^9.5"  from composer.json "require-dev" and run composer update, but it seems that something is still adding it to the composer.lock file

I also have this entry in .gitignore
Code:
# Don't save phpunit under version control.
phpunit

Any help/pointers would be appreciated
Reply
#2

See https://www.codeigniter.com/user_guide/i...v-packages
Reply




Theme © iAndrew 2016 - Forum software by © MyBB