Peridot PHP 测试框架

程序名称:Peridot

授权协议: MIT

操作系统: 跨平台

开发语言: PHP

Peridot 介绍

Peridot 是一个支持 PHP 5.4+ 的高可扩展、用起来很方便的 PHP 测试框架。Peridot
让测试更加有趣。开发者可以创建插件自定义测试报告等。

特性:

  • 灵活的测试接口

  • 事件驱动的插件架构

  • 可轻松添加用户定义的命令行参数

  • 轻松创建自定义测试报告

  • 基于异常的 Pass/fail

  • 通过子范围实现功能混入

  • 可创建你自己的测试 DSL

示例:

<?PHP //arrayobject.spec.PHP
describe('ArrayObject', function() {
    beforeEach(function() {
        $this->arrayObject = new ArrayObject(['one', 'two', 'three']);
    });

    describe('->count()', function() {
        it("should return the number of items", function() {
            $count = $this->arrayObject->count();
            assert($count === 3, "expected 3");
        });
    });
});
?>

$ peridot arrayobject.spec.PHP

  ArrayObject
    ->count()
      ✓ should return the number of items


  1 passing (19 ms)

Peridot 官网

http://peridot-php.github.io/

相关编程语言

提到 EclEmma 首先就要说到著名的 Java 覆盖测试工具...
Solex是一个WEB应用测试用的Eclipse插件。Solex可以...
Apache为我们提供了一个强大的工具 Cactus!它是一套...
Google C Testing Framework是Google公司用来在各种...
JdbcProxy 是 SourceForge 上一个开源的 Java 项目,...
Ripplet是一款负载测试工具,特征如下: 1)基于Apa...