holyshared/peridot-file-fixture-plugin
最新稳定版本:1.0.3
Composer 安装命令:
composer require holyshared/peridot-file-fixture-plugin
包简介
File fixture for peridot
README 文档
README
Basic usage
Register the plugin to be able to use in peridot.
Please the configuration file see the file-fixture.
use Evenement\EventEmitterInterface; use holyshared\peridot\FileFixturePlugin; return function(EventEmitterInterface $emitter) { $plugin = new FileFixturePlugin(__DIR__ . '/fixtures.toml'); $plugin->registerTo($emmiter); };
By calling the loadFixture method in spec, you can load the fixture.
describe('Example', function() { describe('output', function() { it('return message for user', function() { $content = $this->loadFixture('text:console', [ 'name' => 'Jhon' ]); expect('My name is Jhon')->toEqual($content); }); }); });
统计信息
- 总下载量: 776
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-16