Skip to content

Commit

Permalink
Merge branch '5.2' into 5.3
Browse files Browse the repository at this point in the history
* 5.2:
  [gha] Define COLUMNS properly
  [travis] keep compiling sodium
  • Loading branch information
nicolas-grekas committed Jun 27, 2021
2 parents 7e2603b + ecf9ee0 commit 380b8c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Tests/Command/TranslationPullCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@
*/
class TranslationPullCommandTest extends TranslationProviderTestCase
{
private $colSize;

protected function setUp(): void
{
putenv('COLUMNS=121');
$this->colSize = getenv('COLUMNS');
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
parent::setUp();
}

protected function tearDown(): void
{
parent::tearDown();
putenv('COLUMNS');
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
}

public function testPullNewXlf12Messages()
Expand Down
7 changes: 5 additions & 2 deletions Tests/Command/TranslationPushCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@
*/
class TranslationPushCommandTest extends TranslationProviderTestCase
{
private $colSize;

protected function setUp(): void
{
putenv('COLUMNS=121');
$this->colSize = getenv('COLUMNS');
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
parent::setUp();
}

protected function tearDown(): void
{
parent::tearDown();
putenv('COLUMNS');
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
}

public function testPushNewMessages()
Expand Down

0 comments on commit 380b8c9

Please sign in to comment.