Trying out testing in Laravel and have failed miserably.
I'm trying to run phpunit. In my terminal, I run vendor/phpunit/phpunit/phpunit but I get this error:
Parse error: syntax error, unexpected '[', expecting ')' in /vendor/react/promise/src/functions.php on line 68
When I run the same command on another Laravel installation, I get the same error but that it's in the file:
vendor/guzzlehttp/psr7/src/functions.php on line 77
Have I done something wrong? Is there something else that I need to install to get testing to work?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community