Skip to content

Add settings that can affect the test - #11278

Closed
mikhainin wants to merge 1 commit into
php:masterfrom
mikhainin:add-ini-ca-settings
Closed

mikhainin wants to merge 1 commit into
php:masterfrom
mikhainin:add-ini-ca-settings

Conversation

@mikhainin

Copy link
Copy Markdown
Contributor

In the test, we check whether ini_cafile/ini_capath are empty or not. But these values can be affected by configuration and it's better to explicitly define this part of configuration.

@mikhainin

Copy link
Copy Markdown
Contributor Author

Basically, what we see is when we have these parameters in our system, the test fails. Another fix would be to replace the assertions with %s:

  ["ini_cafile"]=>
  string(%d) "%s"
  ["ini_capath"]=>
  string(%d) "%s"

Let me know, if this is more preferrable - I can update the patch

@bukka

bukka commented Jun 16, 2023

Copy link
Copy Markdown
Member

Sorry for the delay, Yeah I think the assertion update is probably better here.

@mikhainin

Copy link
Copy Markdown
Contributor Author

No worries, I'll update the PR

@mikhainin
mikhainin force-pushed the add-ini-ca-settings branch 2 times, most recently from 61a217b to 978274b Compare June 19, 2023 06:46
In the test, we check whether ini_cafile/ini_capath are empty or not.
But these values can be affected by configuration and may be not empty.
As long as this is not important for this test, let's keep the check
of the structure of the array and allow different values for the properties
@mikhainin
mikhainin force-pushed the add-ini-ca-settings branch from 978274b to 0fd96bc Compare June 19, 2023 06:46
@mikhainin

Copy link
Copy Markdown
Contributor Author

@bukka, I updated the PR, if you take a look once again, please?

@bukka bukka closed this in 55a4224 Nov 23, 2026
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