Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !6620

[php-symfony] Set required PHP version to ^7.2.5

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/ybelenko/6522_symfony_server into master Jun 11, 2020
  • Overview 0
  • Commits 10
  • Pipelines 0
  • Changes 58

Created by: ybelenko

Update PHP client package and PHPUnit to meet PHP 7.2 version. Related issue #6522 (closed)

Test results from samples/server/petstore/php-symfony/SymfonyBundle-php:

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

  Warning - The configuration file did not pass validation!
  The following problems have been detected:

  Line 9:
  - Element 'testsuite': The attribute 'name' is required but missing.

  Test results may not be as expected.


[info] Matched route "open_api_server_pet_addpet".

(...)

53) OpenAPI\Server\Model\UserTest::testPropertyUserStatus
This test did not perform any assertions

/Users/ybelenko/Sites/openapi-generator/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/UserTest.php:135

OK, but incomplete, skipped, or risky tests!
Tests: 62, Assertions: 9, Risky: 53.

and with PHPUnit 9:

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

  Warning - The configuration file did not pass validation!
  The following problems have been detected:

  Line 9:
  - Element 'testsuite': The attribute 'name' is required but missing.

  Test results may not be as expected.


[info] Matched route "open_api_server_pet_addpet".

(...)

53) OpenAPI\Server\Model\UserTest::testPropertyUserStatus
This test did not perform any assertions

/Users/ybelenko/Sites/openapi-generator/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/UserTest.php:135

OK, but incomplete, skipped, or risky tests!
Tests: 62, Assertions: 9, Risky: 53.

This PR won't pass Travis CI, because root .travis.yml of this repo configured to PHP 7.1 https://github.com/OpenAPITools/openapi-generator/blob/ebcce674197b0bea1772d1a3074acf0c10650b60/.travis.yml#L88

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 @dkarlovi @mandrean @jfastnacht @ackintosh @renepardon cc @reznikartem as last Symfony contributor cc @FlaverSaver as person who asked for Symfony 5 support

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ybelenko/6522_symfony_server