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 15
15
16
16
class JsonDescriptorTest extends AbstractDescriptorTest
17
17
{
18
+ private $ colSize ;
19
+
18
20
protected function setUp (): void
19
21
{
20
- putenv ('COLUMNS=121 ' );
22
+ $ this ->colSize = getenv ('COLUMNS ' );
23
+ putenv ('COLUMNS= ' .(119 + \strlen (\PHP_EOL )));
21
24
}
22
25
23
26
protected function tearDown (): void
24
27
{
25
- putenv ('COLUMNS ' );
28
+ putenv ($ this -> colSize ? ' COLUMNS= ' . $ this -> colSize : 'COLUMNS ' );
26
29
}
27
30
28
31
protected function getDescriptor ()
Original file line number Diff line number Diff line change 15
15
16
16
class TextDescriptorTest extends AbstractDescriptorTest
17
17
{
18
+ private $ colSize ;
19
+
18
20
protected function setUp (): void
19
21
{
20
- putenv ('COLUMNS=121 ' );
22
+ $ this ->colSize = getenv ('COLUMNS ' );
23
+ putenv ('COLUMNS= ' .(119 + \strlen (\PHP_EOL )));
21
24
}
22
25
23
26
protected function tearDown (): void
24
27
{
25
- putenv ('COLUMNS ' );
28
+ putenv ($ this -> colSize ? ' COLUMNS= ' . $ this -> colSize : 'COLUMNS ' );
26
29
}
27
30
28
31
protected function getDescriptor ()
You can’t perform that action at this time.
0 commit comments