Php 无法在虚拟机中运行codeception-找不到并加载Mink

Php 无法在虚拟机中运行codeception-找不到并加载Mink,php,virtual-machine,acceptance-testing,mink,codeception,Php,Virtual Machine,Acceptance Testing,Mink,Codeception,我安装了一个vm ubuntu来宾操作系统 我的应用程序正在从我的主机操作系统中的浏览器的url运行 我打字 php codecept.phar在来宾操作系统终端中运行 我得到以下错误: [Codeception\Exception\Configuration] Mink could not be found and loaded 我的接受。yml说 # Codeception Test Suite Configuration # suite for acceptance te

我安装了一个vm ubuntu来宾操作系统

我的应用程序正在从我的主机操作系统中的浏览器的url运行

我打字 php codecept.phar在来宾操作系统终端中运行

我得到以下错误:

[Codeception\Exception\Configuration]  
  Mink could not be found and loaded  
我的接受。yml说

# Codeception Test Suite Configuration

# suite for acceptance tests.
# perform tests in browser using the Selenium-like tools.
# powered by Mink (http://mink.behat.org).
# (tip: that's what your customer will see).
# (tip: test your ajax and javascript by one of Mink drivers).

# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.

class_name: WebGuy
modules:
    enabled:
        - PhpBrowser
        - WebHelper
        - Mink
    config:
        PhpBrowser:
           url: 'http://abc.localhost:8888'
我在acceptance.suite.yml中尝试了使用和不使用8888。我也犯了同样的错误

请告知

警告:我也把同一张票交叉贴在了网上。如果我从那里得到答案,我会更新这个问题

  • SSH到客户机VM
  • sudo nano/etc/hosts
  • 添加以下内容
    127.0.0.1 abc.localhost
  • 确保acceptance.yml是正确的
  • 然后在来宾vm中运行命令
    php codecept.phar run

    # Codeception Test Suite Configuration
    
    # suite for acceptance tests.
    # perform tests in browser using the Selenium-like tools.
    # powered by Mink (http://mink.behat.org).
    # (tip: that's what your customer will see).
    # (tip: test your ajax and javascript by one of Mink drivers).
    
    # RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
    
    class_name: WebGuy
    modules:
        enabled:
            - PhpBrowser
            - WebHelper
        config:
            PhpBrowser:
               url: 'http://abc.localhost'