Giter Club home page Giter Club logo

hyperf-pest's Introduction

Pest Testing for Hyperf

Tests Latest Stable Version Total Downloads

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.jsonscripts 添加命令快捷方式:"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.

hyperf-pest's People

Contributors

myxiaoao avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dongyunlee

hyperf-pest's Issues

Hyperf3兼容

大佬有时间兼容下 hyperf3.0 和 php8.1 么

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.