【问题标题】:Codeship and PHPunit selenium class not loadedCodeship 和 PHPunit selenium 类未加载
【发布时间】:2015-08-05 01:37:09
【问题描述】:

我正在使用 Codeship 为 WordPress 运行一些 PHPUnit 测试。

使用WP_UnitTestCase 编写的测试工作正常。

class ActionHookTests extends WP_UnitTestCase {
    function test_things() {
        // this runs fine
    }
}

但是,我的 selenium 测试不会运行:

class TestIntegration extends PHPUnit_Extensions_SeleniumTestCase {
    function test_things() {
        // this throws an error
    }
}

Codeship 中抛出以下错误:

PHP 致命错误:找不到类“PHPUnit_Extensions_SeleniumTestCase”

但是,测试在我的本地机器上运行良好。

这是我的 composer.json 文件:

{
    "require-dev": {
        "phpunit/phpunit": "4.6.*",
        "phpunit/phpunit-selenium": ">=1.2"
    }
}

【问题讨论】:

    标签: php selenium phpunit codeship


    【解决方案1】:

    你试过composer install?

    composer install --prefer-source --no-interaction

    https://codeship.com/documentation/languages/php/

    【讨论】:

      猜你喜欢
      • 2023-03-29
      • 2017-05-07
      • 2018-04-29
      • 2015-09-05
      • 2013-07-22
      • 2011-11-02
      • 1970-01-01
      • 2011-05-11
      • 1970-01-01
      相关资源
      最近更新 更多