承接 automattic/phpunit-select-config 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

automattic/phpunit-select-config

Composer 安装命令:

composer require --dev automattic/phpunit-select-config

包简介

Run PHPUnit, choosing a configuration file by version.

README 文档

README

This is a shim to run PHPUnit while selecting a configuration file based on the PHPUnit major version number.

This is intended for use in projects that have to test with a wide variety of PHP versions, which typically also means a wide variety of PHPUnit versions which may have incompatible configuration file formats.

Installation

Require using composer require --dev automattic/phpunit-select-config.

This will install the phpunit-select-config tool into vendor/bin/, which you might add to your PATH, or you might run it via composer exec -- phpunit-select-config.

Usage

Create PHPUnit configuration files for each relevant PHPUnit version following a common naming pattern. For example, you might name the config for PHPUnit 8 phpunit.8.xml.dist, the one for PHPUnit 9 phpunit.9.xml.dist, the one for PHPUnit 10 phpunit.10.xml.dist, and so on.

Then, instead of running phpunit directly, run phpunit-select-config phpunit.#.xml.dist. Any additional arguments to PHPUnit may follow. The # character in the filename-pattern will be replaced with the PHPUnit major version and passed as the --configuration argument to PHPUnit.

统计信息

  • 总下载量: 13.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 82
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-02-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固