Skip to content

Commit 380b8c9

Browse files
Merge branch '5.2' into 5.3
* 5.2: [gha] Define COLUMNS properly [travis] keep compiling sodium
2 parents 7e2603b + ecf9ee0 commit 380b8c9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Tests/Command/TranslationPullCommandTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,19 @@
2727
*/
2828
class TranslationPullCommandTest extends TranslationProviderTestCase
2929
{
30+
private $colSize;
31+
3032
protected function setUp(): void
3133
{
32-
putenv('COLUMNS=121');
34+
$this->colSize = getenv('COLUMNS');
35+
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
3336
parent::setUp();
3437
}
3538

3639
protected function tearDown(): void
3740
{
3841
parent::tearDown();
39-
putenv('COLUMNS');
42+
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
4043
}
4144

4245
public function testPullNewXlf12Messages()

Tests/Command/TranslationPushCommandTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@
2626
*/
2727
class TranslationPushCommandTest extends TranslationProviderTestCase
2828
{
29+
private $colSize;
30+
2931
protected function setUp(): void
3032
{
31-
putenv('COLUMNS=121');
33+
$this->colSize = getenv('COLUMNS');
34+
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
3235
parent::setUp();
3336
}
3437

3538
protected function tearDown(): void
3639
{
3740
parent::tearDown();
38-
putenv('COLUMNS');
41+
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
3942
}
4043

4144
public function testPushNewMessages()

0 commit comments

Comments
 (0)