etiennemarais / outline
解析和生成 API Blueprint 的 markdown 格式的功能/验收测试。
0.2.3
2016-02-04 15:01 UTC
Requires
- php: 5.6.*
- hmaus/drafter-php: 2.*
Requires (Dev)
- fzaninotto/faker: ~1.4
- illuminate/support: ~5.2
- mockery/mockery: 0.9.*
- phpspec/phpspec: ~2.1
- phpunit/phpunit: ~4.0
- symfony/var-dumper: ~3.0
This package is not auto-updated.
Last update: 2024-09-14 19:03:56 UTC
README
解析和生成 API Blueprint 的 markdown 格式的功能/验收测试
注意
此项目在解析 API Blueprint 文档方面非常主观,且完全针对单一用途构建
待办事项
- 我将随着时间的推移继续扩展此功能,以接受任何格式的 API Blueprint 文档,并为它们生成验收测试
示例用法
// Get the parser
$drafter = new \DrafterPhp\Drafter(__DIR__ . '/../vendor/bin/drafter');
// Build a new blueprint object
$apiBlueprint = new ApiBlueprint($drafter, __DIR__ . '/example.apib');
// Run the thing
(new Generator(new Transformer))
->with($apiBlueprint)
->outputTo(__DIR__ . '/generated_tests')
->generateTestsFor('lumen'); // Entirely only supports laravel style test output