expect/peridot-expect-plugin 问题修复 & 功能扩展

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

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

expect/peridot-expect-plugin

最新稳定版本:4.0.0

Composer 安装命令:

composer require expect/peridot-expect-plugin

包简介

Expectation for peridot

README 文档

README

Expectation for peridot

Latest Stable Version Latest Unstable Version Dependency Status Build Status HHVM Status Scrutinizer Code Quality Coverage Status Stories in Ready

Installation

Installation that uses the composer

Please add the following items to composer.json.
Then please run the composer install.

{
    "require-dev": {
        "expectation/peridot-expect-plugin": "3.0.0"
    }
}

Basic usage

It can be used by simply append the set to peridot.php.

use expect\peridot\ExpectPlugin;

return function(EventEmitterInterface $emitter) {
    ExpectPlugin::create()->registerTo($emitter);
};

or

How to configure can be found here.

use expect\peridot\ExpectPlugin;

return function(EventEmitterInterface $emitter) {
    ExpectPlugin::createWithConfig('.expect.toml')->registerTo($emitter);
};

Examples of spec

You can easily use in the spec file.

describe('Example', function() {
    describe('#create', function() {
        it('return instance', function() {
            expect(Example::create())->toBeAnInstanceOf('Example')
        });
    });
});

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固