expect/peridot-expect-plugin
最新稳定版本:4.0.0
Composer 安装命令:
composer require expect/peridot-expect-plugin
包简介
Expectation for peridot
README 文档
README
Expectation for peridot
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
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-04