2017 © Pedro Peláez
 

library swagger-test

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

image

byjg/swagger-test

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  • Saturday, June 30, 2018
  • by byjg
  • Repository
  • 3 Watchers
  • 22 Stars
  • 6,567 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 3 Open issues
  • 19 Versions
  • 46 % Grown

The README.md

PHP Swagger Test

Build Status Opensource ByJG GitHub source GitHub license GitHub release Scrutinizer Code Quality, (*1)

A set of tools for testing your REST calls based on the OpenApi specification using PHPUnit. Currently, this library supports the OpenApi specifications 2.0 (formerly swagger) and 3.0. Some features like callbacks, links and references to external documents/objects weren't implemented., (*2)

PHP Swagger Test can help you to test your REST Api. You can use this tool both for Unit Tests or Functional Tests., (*3)

This tool reads a previously Swagger JSON file (not YAML) and enables you to test the request and response. You can use the tool "https://github.com/zircote/swagger-php" for creating the JSON file when you are developing your rest API., (*4)

The ApiTestCase's assertion process is based on throwing exceptions if some validation or test failed., (*5)

Use cases for PHP Swagger test

You can use the Swagger Test library as:, (*6)

Who is using this library?, (*7)

Install

composer require "byjg/swagger-test"

Tests

SPEC=swagger php -S 127.0.0.1:8080 tests/rest/app.php &
SPEC=openapi php -S 127.0.0.1:8081 tests/rest/app.php &
vendor/bin/phpunit

Questions?

Please raise your issue on Github issue., (*8)

References

This project uses the byjg/webrequest component. It implements the PSR-7 specification, and a HttpClient / MockClient to do the requests. Check it out to get more information., (*9)

Dependencies

flowchart TD
    byjg/swagger-test --> byjg/webrequest

Open source ByJG, (*10)

The Versions

30/06 2018

dev-master

9999999-dev

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

30/06 2018

dev-issue-21

dev-issue-21

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

08/05 2018

1.2.5

1.2.5.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

04/05 2018

dev-pullrequest-18

dev-pullrequest-18

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

01/03 2018

1.2.4

1.2.4.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

01/03 2018

dev-issue-13

dev-issue-13

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

01/03 2018

dev-oas30

dev-oas30

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

30/01 2018

1.2.3

1.2.3.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

30/01 2018

1.2.3.x-dev

1.2.3.9999999-dev

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

10/01 2018

dev-issue-9

dev-issue-9

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

28/12 2017

1.2.2

1.2.2.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

11/12 2017

1.2.1

1.2.1.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

06/11 2017

1.2.0

1.2.0.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

The Development Requires

by João Gilberto Magalhães

09/10 2017

1.1.1

1.1.1.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

by João Gilberto Magalhães

20/09 2017

1.1.0

1.1.0.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

by João Gilberto Magalhães

20/09 2017

1.1.0.x-dev

1.1.0.9999999-dev

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

by João Gilberto Magalhães

21/07 2017

1.0.2

1.0.2.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

by João Gilberto Magalhães

25/05 2017

1.0.1

1.0.1.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

by João Gilberto Magalhães

22/05 2017

1.0.0

1.0.0.0

A set of tools for test your REST calls based on the swagger documentation using PHPUnit

  Sources   Download

MIT

The Requires

 

by João Gilberto Magalhães