定制 r3bzya/openapi-testing 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

r3bzya/openapi-testing

最新稳定版本:v0.1.0

Composer 安装命令:

composer require --dev r3bzya/openapi-testing

包简介

This package allows you to integrate the specification validation into the flow of tests

关键字:

README 文档

README

This package allows you to integrate the specification validation into the flow of tests.

Installation

Note
This package is mostly intended to be used as part of an API test suite.

Via Composer:

composer require --dev r3bzya/openapi-testing

Usage

You can use \R3bzya\OpenApiTesting\Concerns\HasSpecificationAssertion or \R3bzya\OpenApiTesting\Concerns\ValidateOpenApiSpecification just add one of them into your TestCase class.

HasSpecificationAssertion

The HasSpecificationAssertion trait adds the assertSpecification method into your TestCase class, this may be necessary if you need to check one specific case.

ValidateOpenApiSpecification

The ValidateOpenApiSpecification trait integrates into the call method which will allow your application to validate specification in the flow of tests.

Note
If for some reason there is no need to validate the specification disable it in your test method with the skipOpenApiSpecificationValidation method or disable it globally for the Test class by the skipOpenApiSpecificationValidation property.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-16