Laravel \ Lumen \ Application :: prepareRequest()的问题必须是Illuminate \ Http \ Request

时间:2018-10-08 14:02:49

标签: laravel bdd behat lumen-5.2

"require-dev": {
        "fzaninotto/faker": "~1.4",
        "phpunit/phpunit": "~4.0",
        "symfony/console": "3.0.*",
        "behat/behat": "~3.0",
        "behat/mink": "^1.7",
        "behat/mink-extension": "^2.3",
        "arisro/behat-lumen-extension": "^2.0"
    },

default:
  autoload: [ %paths.base%/tests/functional/contexts ]
  extensions:
    Arisro\Behat\ServiceContainer\LumenExtension:
      # env_file: .env.behat
    Behat\MinkExtension:
      base_url: 'https://fitpass.test'
      default_session: lumen
      lumen: ~
  suites:
    default:
      paths: [ %paths.base%/tests/functional/features ]
      filters:
      contexts:
        - FeatureContext

class FeatureContext extends MinkContext implements Context
{
    /**
     * Initializes context.
     *
     * Every scenario gets its own context instance.
     * You can also pass arbitrary arguments to the
     * context constructor through behat.yml.
     */
    public function __construct()
    {
    }
}

Folders  -问题 当我运行像我在主页上这样的简单功能时,出现此错误问题。

功能:测试   这只是一个虚拟测试。   场景:主页
    鉴于我在主页上

类型错误:参数1传递给了

Laravel \ Lumen \ Application :: prepareRequest()必须是Illuminate \ Http \ Request的实例

Symfony \ Component \ HttpFoundation \ Request的实例,

在vendor / laravel / lumen-framework / src / Concerns / RoutesRequests.php中称为

在第416行(Behat \ Testwork \ Call \ Exception \ FatalThrowableError)

0 个答案:

没有答案