Skip to content

test: Use --EXTENSIONS-- instead of extension_loaded() skip checks in tests - #25033

Open
jorgsowa wants to merge 1 commit into
php:masterfrom
jorgsowa:tests-prefer-extensions-section
Open

jorgsowa wants to merge 1 commit into
php:masterfrom
jorgsowa:tests-prefer-extensions-section

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

Some tests still don't use --EXTENSIONS-- for extension checks.

@kamil-tekiela kamil-tekiela left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This came from merges.

--SKIPIF--
<?php
if (!extension_loaded("openssl"))
die("skip mysqlnd is built without SSL support, so the sha256_password plugin is not available");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In this case the skip message provides additional detail. Should we support comment lines in the EXTENSIONS section?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No, that detail is not important. We already have --TEST-- section which mentions which plugin it uses.

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.

3 participants