Skip to content

Commit fbc5629

Browse files
Merge branch '5.2' into 5.3
* 5.2: [gha] Define COLUMNS properly [travis] keep compiling sodium
2 parents f142ec7 + bf09a0a commit fbc5629

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/Console/Descriptor/TextDescriptorTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@
1818
class TextDescriptorTest extends AbstractDescriptorTest
1919
{
2020
private $fileLinkFormatter = null;
21+
private $colSize;
2122

2223
protected function setUp(): void
2324
{
24-
putenv('COLUMNS=121');
25+
$this->colSize = getenv('COLUMNS');
26+
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
2527
}
2628

2729
protected function tearDown(): void
2830
{
29-
putenv('COLUMNS');
31+
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
3032
}
3133

3234
protected function getDescriptor()

0 commit comments

Comments
 (0)