lewiscowles / ulid
通用唯一字母顺序可排序标识符,移植到PHP
1.3.0
2022-03-23 02:14 UTC
Requires
- php: >=7.3
Requires (Dev)
- ext-xdebug: *
- infection/infection: *
- phpstan/phpstan: *
- phpunit/phpunit: ^8.0|^9
This package is not auto-updated.
Last update: 2024-09-13 23:31:27 UTC
README
通用唯一字母顺序可排序标识符,移植到PHP
许可证 AGPL
需求
PHP7.4+
用法
composer require lewiscowles/ulid
测试
要生成覆盖率报告,必须在PHP中启用xdebug扩展
单元测试CLI
php vendor/bin/phpunit --coverage-html ./reports/ --whitelist src
使用infection进行变异测试
php vendor/bin/infection
PHPStan
php vendor/bin/phpstan analyse src -l max
Jenkins测试流水线步骤
stage('Run Unit Tests in PHP') { dir('ulid') { sh 'php vendor/bin/phpunit --coverage-html ./reports/ --whitelist src' } publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'ulid/reports', reportFiles: 'index.html', reportName: 'PHPUnit Coverage']) }
有什么想法吗?
创建一个issue,一个PR(如果可能的话) 😸