Skip to content

Commit bf09a0a

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

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)