承接 roukmoute/dto-tester 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

roukmoute/dto-tester

Composer 安装命令:

composer require --dev roukmoute/dto-tester

包简介

Add PHPUnit extension for testing DTOs and Transfer Objects

README 文档

README

CI

Automatically PHPUnit Test DTO and Transfer Objects.

Original idea: Automatically JUnit Test DTO and Transfer Objects

Installation

These commands requires you to have Composer installed globally.
Open a command console, enter your project directory and execute the following commands to download the latest stable version:

composer require --dev roukmoute/dto-tester

Usage

All we need to do is extend DtoTester\DtoTest and create a test instance and the DtoTest class will do the rest.

Here it is an example class named FooBar:

<?php

class FooBarTest extends \DtoTester\DtoTest
{
    protected function getInstance()
    {
        return new FooBar();
    }
}

So we now turned what would have been many boring unit tests which didn’t test any real business logic into a simple file with less than 10 lines of code.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固