【发布时间】:2019-03-05 04:21:48
【问题描述】:
我正在 a tutorial on Laracast 学习 Laravel。现在我有点卡在一个我不想跳过的部分(前 40 秒)。
问题是当我打开 PHP artisan tinker 并执行以下命令时:phpunit (or vendor/bin/phpunit) 它给了我错误:
PHP Notice: Use of undefined constant phpunit - assumed 'phpunit' in /var/www/vhosts/web-wings.nl/roylar.web-wings.nleval()'d code on line 1
和
PHP Notice: Use of undefined constant vendor - assumed 'vendor' in /var/www/vhosts/web-wings.nl/roylar.web-wings.nleval()'d code on line 1
当我尝试时
phpunit tests/Unit/ExampleTest.php
它给出了错误:
PHP 解析错误:语法错误,第 1 行出现意外的 T_STRING
所以phpunit肯定有问题,但我找不到答案。我查看了教程的 cmets、Youtube 和 Google,但没有。
【问题讨论】: