Skip to content

Commit 28c7448

Browse files
Merge branch '5.2' into 5.3
* 5.2: -
2 parents fbc5629 + 5440a64 commit 28c7448

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

Tests/Console/Descriptor/AbstractDescriptorTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@
2525

2626
abstract class AbstractDescriptorTest extends TestCase
2727
{
28+
private $colSize;
29+
30+
protected function setUp(): void
31+
{
32+
$this->colSize = getenv('COLUMNS');
33+
putenv('COLUMNS=121');
34+
}
35+
36+
protected function tearDown(): void
37+
{
38+
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
39+
}
40+
2841
/** @dataProvider getDescribeRouteCollectionTestData */
2942
public function testDescribeRouteCollection(RouteCollection $routes, $expectedDescription)
3043
{

Tests/Console/Descriptor/TextDescriptorTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@
1818
class TextDescriptorTest extends AbstractDescriptorTest
1919
{
2020
private $fileLinkFormatter = null;
21-
private $colSize;
22-
23-
protected function setUp(): void
24-
{
25-
$this->colSize = getenv('COLUMNS');
26-
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
27-
}
28-
29-
protected function tearDown(): void
30-
{
31-
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
32-
}
3321

3422
protected function getDescriptor()
3523
{

0 commit comments

Comments
 (0)