Skip to content

Conversation

@carlos-granados
Copy link
Contributor

No description provided.

@carlos-granados carlos-granados force-pushed the refactor-syntax-help-tests branch 4 times, most recently from 5a22388 to c72b534 Compare December 10, 2025 10:31
@carlos-granados carlos-granados force-pushed the refactor-syntax-help-tests branch from c72b534 to 6143c22 Compare December 10, 2025 10:36
// Remove indentation
$description = preg_replace('/^[\s\t]*/m', '', $docBlock);

// normalize line endings
Copy link
Contributor Author

Choose a reason for hiding this comment

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

While running the tests in CI I discovered that the actual output was different in Windows machines. This had been hidden by the manipulation of line endings that we do on the tests but when using fixtures it became noticeable. The issue is that we later split this description into lines by a newline character, so we need to normalize the line endings in Windows in order for this functionality to behave equally in all OSs

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch, thanks @carlos-granados.

It would be worth mentioning this change in the commit message when it's merged (though it should make no external difference, as you say I can see that we later explode by "\n" and then print each line using the system line ending).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment in the extended description of the commit

Copy link
Contributor

@acoulton acoulton left a comment

Choose a reason for hiding this comment

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

@carlos-granados carlos-granados merged commit c8b0f2c into Behat:3.x Dec 10, 2025
22 checks passed
@carlos-granados carlos-granados deleted the refactor-syntax-help-tests branch December 10, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants