承接 expect/peridot-expect-plugin 相关项目开发

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

邮箱: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.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 19
  • 推荐数: 0

GitHub 信息

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

其他信息

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