Skip to content

Commit a24590d

Browse files
committed
minor symfony#40934 [Translation] [CI] Specify terminal width (Nyholm)
This PR was merged into the 5.3-dev branch. Discussion ---------- [Translation] [CI] Specify terminal width | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | This is an alternative to symfony#40933. It will force to use 121 (120 max) characters as width. Commits ------- d51f7f6 [Translation] [CI] Specify terminal width
2 parents a9d582d + d51f7f6 commit a24590d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/Symfony/Component/Translation/Tests/Command/TranslationPullCommandTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
*/
2828
class TranslationPullCommandTest extends TranslationProviderTestCase
2929
{
30+
protected function setUp(): void
31+
{
32+
putenv('COLUMNS=121');
33+
parent::setUp();
34+
}
35+
36+
protected function tearDown(): void
37+
{
38+
parent::tearDown();
39+
putenv('COLUMNS');
40+
}
41+
3042
public function testPullNewXlf12Messages()
3143
{
3244
$arrayLoader = new ArrayLoader();

src/Symfony/Component/Translation/Tests/Command/TranslationPushCommandTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
*/
2727
class TranslationPushCommandTest extends TranslationProviderTestCase
2828
{
29+
protected function setUp(): void
30+
{
31+
putenv('COLUMNS=121');
32+
parent::setUp();
33+
}
34+
35+
protected function tearDown(): void
36+
{
37+
parent::tearDown();
38+
putenv('COLUMNS');
39+
}
40+
2941
public function testPushNewMessages()
3042
{
3143
$arrayLoader = new ArrayLoader();

0 commit comments

Comments
 (0)