定制 hatchetaustralia/laravel-schedule-testing 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hatchetaustralia/laravel-schedule-testing

最新稳定版本:v0.1.3

Composer 安装命令:

composer require --dev hatchetaustralia/laravel-schedule-testing

包简介

A lightweight package for testing Laravel schedules.

README 文档

README

Hatchet's Laravel Schedule Testing

Build Status Total Downloads Latest Stable Version License

About Laravel Schedule Testing

Laravel Schedule Testing was created and is maintained by the developers at Hatchet and is a lightweight package for testing your scheduled commands in Laravel.

Installation

Minimum requirement of PHP 8.0 and Laravel 9

Require Laravel Schedule Testing via Composer:

composer require hatchetaustralia/laravel-schedule-testing --dev

Usage

class HourlyReportCommandTest extends TestCase
{
    // Add the `InteractsWithSchedule` trait to your class
    use InteractsWithSchedule;

    public function testCommandRunsOnTheHour()
    {
        // Then, get started with using the `assertSchedule` method.
        $this->assertSchedule('reports:send-report')
            ->isScheduledToRunAt(now()->startOfHour());
    }
}

Assertions

Check out our documentation for further information on what assertions are available.

Contributing

Thank you for considering to contribute to Laravel Schedule Testing. All the contribution guidelines are mentioned here.

You can have a look at the CHANGELOG for constant updates & detailed information about the changes.

License

Laravel Schedule Testing is an open-sourced software licensed under the Do Not Harm License.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固