dan-da/tester-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dan-da/tester-php

最新稳定版本:v1.0.5

Composer 安装命令:

composer require dan-da/tester-php

包简介

README 文档

README

A simple one-file php test harness.

This is a very lightweight test harness that can be easily installed with composer, or you can just copy the tester.php file into your own project.

Let's see an example test.

The test is in file eq.test.php.

<?php

namespace tester;

class eq extends test_base {

    public function runtests() {
        $this->test1();
    }

    protected function test1() {

        $this->eq( 1, "1.00", 'one' );
        $this->eq( 2, "2.00", 'two' );
    }

}

And now let's execute it.

$ ../tester.php 
Running tests in eq...
[pass] 1 == 1.00  |  one
[pass] 2 == 2.00  |  two


2 tests passed.
0 tests failed.

Usage

   tester.php [testfilename]
   
   By default, all files matching *.test.php in current directory will be run.

Installation and Running.

Library install

Normally you would install tester-php into your own project using a composer require in your project's composer.json, eg:

    "require": {
        "dan-da/tester-php"
    }

Then run composer install.

tester.php is then available at /vendor/bin/tester.php.

Standalone install

 git clone https://github.com/dan-da/hd-wallet-derive
 cd hd-wallet-derive
 php -r "readfile('https://getcomposer.org/installer');" | php
 php composer.phar install

Run tests.

$ cd tests
$ ../tester.php

Todos

  • add more example test cases
  • add proper help/usage.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-09-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固