cooper/hyperf-pest

Pest Testing for hyperf
29 2
Install
composer require cooper/hyperf-pest
Latest Version:v1.1.0
PHP:>=8.0
License:MIT
Last Updated:Jul 20, 2023
Links: GitHub  ·  Packagist
Maintainer: huanghua581

Pest Testing for Hyperf

Pest 是一个注重简单性的优雅 PHP 测试框架.

1.安装 Hyperf-skeleton (已有 Hyperf 项目请忽略)

https://github.com/hyperf/hyperf-skeleton

composer create-project hyperf/hyperf-skeleton

2.使用 Composer 安装

composer require cooper/hyperf-pest

执行

php bin/hyperf.php vendor:publish cooper/hyperf-pest

3.测试命令

./vendor/bin/co-pest --prepend test/bootstrap.php -c phpunit.xml
提示
  • 在 composer.json 中 scripts 添加命令快捷方式:"pest": "co-pest --prepend test/bootstrap.php -c phpunit.xml --colors=always";
  • 语法请看官方文档;
  • 按照 phpunit 写测试也是可以的。

License

The MIT License (MIT). Please see License File for more information.

Related Packages

hyperf/scout

Hyperf Scout provides a driver based solution to searching your Eloquent models....

190,227 6
limingxinleo/i-encryption

Illuminate Encryption for Hyperf

642 6
jmiy/hyperf-i-cache-3-2

Illuminate Cache for Hyperf

42 0
maxiviper117/pest-flow

A Pest 5 plugin for executable behaviour specifications.

3 0

Version History

Version Released PHP License
v1.1.0 >=8.0 MIT
v1.0.0 >=8.0 MIT