Skip to content

[Translation] fix tests on Windows #52868

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
Dec 3, 2023
Merged

[Translation] fix tests on Windows #52868

merged 1 commit into from
Dec 3, 2023

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Dec 2, 2023

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

@xabbuh xabbuh requested a review from welcoMattic as a code owner December 2, 2023 16:52
@carsonbot carsonbot added this to the 6.4 milestone Dec 2, 2023
@xabbuh xabbuh force-pushed the pr-52746 branch 2 times, most recently from bcfdc70 to 75971db Compare December 2, 2023 17:04
@@ -55,9 +55,12 @@ public function testUnwritableDirectory()
$writer = new TranslationWriter();
$writer->addDumper('foo', $this->createMock(DumperInterface::class));

$path = tempnam(sys_get_temp_dir(), '');
file_put_contents($path, '');
Copy link
Member Author

Choose a reason for hiding this comment

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

we use a similar approach in FilesystemTest::testMkdirCreatesDirectoriesFails()

@fabpot
Copy link
Member

fabpot commented Dec 3, 2023

Thank you @xabbuh.

@fabpot fabpot merged commit 1464608 into symfony:6.4 Dec 3, 2023
@xabbuh xabbuh deleted the pr-52746 branch December 3, 2023 18:48
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.

4 participants