承接 thipages/quicktests 相关项目开发

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

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

thipages/quicktests

Composer 安装命令:

composer require thipages/quicktests

包简介

Quick PHP unit tests

README 文档

README

Quick PHP Unit Tests

Installation

composer require thipages\quicktests

Usage of QTests class

through the following static method

    test  ($qTestsOrList, $htmlOutput=false, $idFilter=null)

Example

  $html=QTests::test(Tests_Foo::class);
                or
  $html=QTests::test([Tests_Foo1::class,Tests_Foo2::class]);
  
  // where Tests_Foo needs to have s static dataSet() method
  // being an array of tests to perform and containing a 3 items array (actual,expected,description)

  class Tests_Foo {                              // test group Tests_Foo
      public static function dataSet() {
          return [
              [true, true, "True  is true"],      // test 1
              [true, false, "true is not false"], // test 2
              [1,"1", "Number 1 is not String 1"] // test 3
          ];
        }
    }

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固