定制 herrera-io/phpunit-test-case 二次开发

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

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

herrera-io/phpunit-test-case

最新稳定版本:1.2.1

Composer 安装命令:

composer require herrera-io/phpunit-test-case

包简介

A PHPUnit test case class with additional functionality.

README 文档

README

Build Status

A PHPUnit test case class and trait with additional functionality.

Summary

The TestCase class and Extras trait provide additional methods for performing basic, repetitive tasks such as:

  • creating and deleting temporary files and directories
  • calling protected and private methods
  • retrieving and setting protected and private properties

NOTE Both TestCase and Extras are identical, except the former being a class and the latter being a trait.

Installation

Add it to your list of Composer dependencies:

$ composer require herrera-io/phpunit-test-case=1.*

Usage

The TestCase class

<?php

class MyTestCase extends Herrera\PHPUnit\TestCase
{
    // my tests
}

The Extras trait

<?php

class MyTestCase extends My\Own\Custom\TestCase
{
    use Herrera\PHPUnit\Extras;

    // my tests
}

NOTE If your test class provides its own tearDown() method, make sure to call the class's or trait's tearDown() method as well. TestCase and Extras uses the tear down process to clean up temporary files and directories.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-19