-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dx] require >= PHPUnit 9.6, update phpunit schema, deprecate skipOnSymfony7() #1425
Conversation
// @legacy - MakeEntity uses ux-turbo-mercure (archived), it needs to use ux-turbo (mercure built in) for Symfony 7.0 | ||
if ('7.0.x-dev' === $_SERVER['SYMFONY_VERSION']) { | ||
return $this->createMakerTest() | ||
->skipTest('symfony/ux-turbo-mercure is not supported on Symfony 7.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chicken or the egg... MakeEntity
needs to be refactored to use ux-turbo
and at first glance doesn't appear to be a "1 for 1" swap with ux-turbo-mercure
. To keep the entire test suite from blowing up due to a deprecation - this skip conditional was moved here for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for now for me
composer.json
Outdated
@@ -30,6 +30,7 @@ | |||
"composer/semver": "^3.0", | |||
"doctrine/doctrine-bundle": "^2.5.0", | |||
"doctrine/orm": "^2.10.0", | |||
"phpunit/phpunit": "^9.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does phpunit-bridge
read / respect this? We run vendor/bin/simple-phpunit
, which downloads its own phpunit. Does this signal to download 9.6? I thought the version was done with an env var.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! added the SYMFONY_PHPUNIT_VERSION
with 9.6
to phpunit.xml.dist
instead.... simple-phpunit
picks up on that locally and on ci when doing the install.
// @legacy - MakeEntity uses ux-turbo-mercure (archived), it needs to use ux-turbo (mercure built in) for Symfony 7.0 | ||
if ('7.0.x-dev' === $_SERVER['SYMFONY_VERSION']) { | ||
return $this->createMakerTest() | ||
->skipTest('symfony/ux-turbo-mercure is not supported on Symfony 7.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for now for me
deprecates
MakerTestDetails::skipOnSymfony7()
methods that were meant to be used internally.add ability to skip tests locally (e.g. mercure tests can be skipped by setting
MAKER_SKIP_MERCURE_TEST
totrue
inphpunit.xml
. Previously that var had to be set in the$_SERVER
super global.) This plays into Windows tests on GitHub actions.fix outdated / deprecated
phpunit.xml.dist
schema / attributesrequire PHPUnit 9.6+ in tests (Only have to worry about 1 phpunit.xml schema. )
adds a
MakerTestDetails::skipTest()
method & logic to replace the now deprecatedskipOnSymfony7()
methods. Ideally, we'll keep the new method for future use even if we're not using it now.skipTest()
is marked@internal
for the time being.