Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Symfony\Component\HttpKernel\Exception\NotFoundHttpException_Php_Laravel_Phpunit - Fatal编程技术网

Php Symfony\Component\HttpKernel\Exception\NotFoundHttpException

Php Symfony\Component\HttpKernel\Exception\NotFoundHttpException,php,laravel,phpunit,Php,Laravel,Phpunit,这是在运行PHPUnit测试时发生的 例外情况应如下所示: +"exception": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException" +"file": "..../vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php" 更改环境文件

这是在运行PHPUnit测试时发生的

例外情况应如下所示:

  +"exception": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException"
  +"file": "..../vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php"

更改环境文件以解决此问题

以前

APP_URL=localhost
改成

APP_URL=http://localhost