Skip to content

Commit c23cdfb

Browse files
[gha] Define COLUMNS properly
This reverts commit c2e4ac613ca5dfcc60cc56f492ee04b52f010e4d.
1 parent 737cfd7 commit c23cdfb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tests/Console/Descriptor/TextDescriptorTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@
1515

1616
class TextDescriptorTest extends AbstractDescriptorTest
1717
{
18+
private $colSize;
19+
1820
protected function setUp(): void
1921
{
20-
putenv('COLUMNS=121');
22+
$this->colSize = getenv('COLUMNS');
23+
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
2124
}
2225

2326
protected function tearDown(): void
2427
{
25-
putenv('COLUMNS');
28+
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
2629
}
2730

2831
protected function getDescriptor()

0 commit comments

Comments
 (0)