Skip to content

[HttpFoundation] Add tests for uncovered sections #57714

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

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Jul 12, 2024

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

@OskarStark
Copy link
Contributor

Great, I propose to merge such PRs in lower branches. 😎

@alexandre-daubois
Copy link
Member Author

That's what I went for at first but I remembered that this topic was raised in my other PRs about test coverage, where it's merged in the highest branch possible 😄 For example: #52771 (comment), #52746 (review)

@OskarStark
Copy link
Contributor

Yes, same for me 😄

@derrabus
Copy link
Member

There's nothing wrong with increasing test coverage on LTS branches. I'd say, go for it.

@alexandre-daubois
Copy link
Member Author

Suits me fine. I opened a follow-up for 6.4 and will do another for 7.1 for the remaining ones if this gets actually merged in 5.4

fabpot added a commit that referenced this pull request Jul 19, 2024
…yFileResponse` (alexandre-daubois)

This PR was merged into the 7.2 branch.

Discussion
----------

[HttpFoundation] Remove always false condition in `BinaryFileResponse`

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Issues        | -
| License       | MIT

The condition is always false because the parameter is int typed. Passing `PHP_INT_MAX + 1` will result on a cast to float, making PHP complain about the parameter type.

Also, the exception raised should better be an `InvalidArgmuentException` to me, instead of a logic one.

I moved in this PR the test covering `setChunkSize` originally proposed in #57714.

Commits
-------

13fca6a [HttpFoundation] Remove always false condition in `BinaryFileResponse`
@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit 3621f80 into symfony:5.4 Jul 26, 2024
11 of 12 checks passed
nicolas-grekas added a commit that referenced this pull request Jul 26, 2024
…d `SchemeRequestMatcher` (alexandre-daubois)

This PR was merged into the 6.4 branch.

Discussion
----------

[HttpFoundation] Add tests for `MethodRequestMatcher` and `SchemeRequestMatcher`

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

Following #57714 after rebasing on 5.4

Commits
-------

5a3c2a6 [HttpFoundation] Add tests for `MethodRequestMatcher` and `SchemeRequestMatcher`
symfony-splitter pushed a commit to symfony/http-foundation that referenced this pull request Jul 26, 2024
…d `SchemeRequestMatcher` (alexandre-daubois)

This PR was merged into the 6.4 branch.

Discussion
----------

[HttpFoundation] Add tests for `MethodRequestMatcher` and `SchemeRequestMatcher`

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

Following symfony/symfony#57714 after rebasing on 5.4

Commits
-------

5a3c2a63c7 [HttpFoundation] Add tests for `MethodRequestMatcher` and `SchemeRequestMatcher`
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.

5 participants