Skip to content

Migrate PHP client samples to use OAS v3 spec#6722

Merged
wing328 merged 2 commits intomasterfrom
php-oas3
Jun 22, 2020
Merged

Migrate PHP client samples to use OAS v3 spec#6722
wing328 merged 2 commits intomasterfrom
php-oas3

Conversation

@wing328
Copy link
Member

@wing328 wing328 commented Jun 20, 2020

Migrate PHP client samples to use OAS v3 spec

PR checklist

  • Read the contribution guidelines.
  • If contributing template-only or documentation-only changes which will change sample output, build the project beforehand.
  • Run the shell script ./bin/generate-samples.shto update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/config/java*. For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

cc @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), @ackintosh (2017/09) ❤️, @ybelenko (2018/07), @renepardon (2018/12)

@wing328 wing328 added the WIP Work in Progress label Jun 20, 2020
@wing328 wing328 added Client: PHP Enhancement: CI/Test and removed WIP Work in Progress labels Jun 20, 2020
@wing328 wing328 added this to the 5.0.0 milestone Jun 20, 2020
@ybelenko
Copy link
Contributor

@wing328 Did you run unit tests?

@wing328
Copy link
Member Author

wing328 commented Jun 22, 2020

Copy link
Contributor

@ybelenko ybelenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked locally under samples/client/petstore/php/OpenAPIClient-php:

$  vendor/bin/phpunit tests
PHPUnit 8.5.5 by Sebastian Bergmann and contributors.

................................................................. 65 / 73 ( 89%)
........                                                          73 / 73 (100%)

Time: 10.25 seconds, Memory: 10.00 MB

OK (73 tests, 348 assertions)

Btw, it's weird that samples/client/petstore/php/OpenAPIClient-php/tests folder isn't autogenerated, we just store it next to source code for testing while user doesn't have it.

@wing328
Copy link
Member Author

wing328 commented Jun 22, 2020

@ybelenko as discussed these tests are for Petstore only but we won't auto-generate these files.

@wing328 wing328 merged commit bcefbe9 into master Jun 22, 2020
@wing328 wing328 deleted the php-oas3 branch June 22, 2020 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants