-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Unify run-tests.php test parsing #10535
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
Conversation
looks nice simplification (redundant path :-)) cc @iluuu1994 |
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.
The strncmp()
to rtrim($line, "\n\r") !==
change makes sense to me. As for moving the check into the loop, the only thing this gets rid of is one fgets
call at the cost of checking it every time, I'm not sure that makes sense.
also |
@iluuu1994 can this PR be merged? |
@mvorisek I'm not too convinced the unification of the TEST section is an improvement. It's not really unified anyway (given the special if) but needlessly adds a condition for every line that can only be true for the first one. The behavioral change on the other hand makes sense (changing I don't really care too much if others think this is fine, but I'd prefer just changing the |
Previously the |
Sorry, I know nothing about the PHP unit tests, barely enough to be able to run them. |
It's not up to me to decide any of this. :) |
There is no consensus for merging this, so I am closing this PR. It also has conflicts. |
No description provided.