charonlab/testing
最新稳定版本:1.0.0
Composer 安装命令:
composer require charonlab/testing
包简介
Testing utilities for charonlab packages.
README 文档
README
Installation
Use the composer to install:
composer require --dev charonlab/testing
Usage
PHPUnit
Create a phpunit.xml.dist file, below is a sample configuration.
<?xml version="1.0" encoding="utf-8"?> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache" executionOrder="depends,defects" requireCoverageMetadata="true" beStrictAboutCoverageMetadata="true" displayDetailsOnTestsThatTriggerNotices="true" displayDetailsOnTestsThatTriggerWarnings="true" failOnNotice="true" failOnWarning="true" failOnRisky="true" > <coverage/> <testsuites> <testsuite name="Charon Test Suite"> <directory>tests</directory> </testsuite> </testsuites> <source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true"> <include> <directory>src</directory> </include> </source> <php> <ini name="error_reporting" value="24575"/> </php> </phpunit>
PHPBench
Create a phpbench.json file, below is a sample configuration.
{
"$schema":"./vendor/phpbench/phpbench/phpbench.schema.json",
"runner.bootstrap": "./vendor/autoload.php",
"runner.path": "tests/Performance",
"runner.progress": "plain",
"runner.iterations": 20,
"runner.revs": 1000,
"runner.file_pattern": "*Bench.php",
"report.generators": {
"compressed": {
"title": "Charon Container Benchmark Tests",
"generator": "expression",
"cols": [ "benchmark", "subject", "mem_peak", "mode", "mean", "best", "worst" ]
}
},
"core.extensions": [
"PhpBench\\Extensions\\XDebug\\XDebugExtension"
]
}
Support
License
The MIT License (MIT). Please see License for more information.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-12