Commit 44f8828
committed
minor #51299 [PsrHttpMessageBridge] Fix test case (nicolas-grekas)
This PR was merged into the 6.4 branch.
Discussion
----------
[PsrHttpMessageBridge] Fix test case
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
On Windows, this test case fails with:
```
1) Symfony\Bridge\PsrHttpMessage\Tests\Factory\PsrHttpFactoryTest::testUploadErrNoFile
RuntimeException: The file "C:\projects\symfony" cannot be opened: fopen(C:\projects\symfony): Failed to open stream: Permission denied
```
The reason is that the empty string is turned into the empty directory, and you can't fopen a directory on Windows.
The removed assertion have no purpose, they only check the behavior of the native SplFileInfo class.
Commits
-------
9edd7b9788 [PsrHttpMessageBridge] Fix test case1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 214 | + | |
218 | 215 | | |
219 | 216 | | |
220 | 217 | | |
| |||
0 commit comments