File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1515
1616class JsonDescriptorTest 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 ()
Original file line number Diff line number Diff line change 1515
1616class 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 ()
You can’t perform that action at this time.
0 commit comments