File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 25
25
26
26
abstract class AbstractDescriptorTest extends TestCase
27
27
{
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
+
28
41
/** @dataProvider getDescribeRouteCollectionTestData */
29
42
public function testDescribeRouteCollection (RouteCollection $ routes , $ expectedDescription )
30
43
{
Original file line number Diff line number Diff line change 15
15
16
16
class TextDescriptorTest extends AbstractDescriptorTest
17
17
{
18
- private $ colSize ;
19
-
20
- protected function setUp (): void
21
- {
22
- $ this ->colSize = getenv ('COLUMNS ' );
23
- putenv ('COLUMNS= ' .(119 + \strlen (\PHP_EOL )));
24
- }
25
-
26
- protected function tearDown (): void
27
- {
28
- putenv ($ this ->colSize ? 'COLUMNS= ' .$ this ->colSize : 'COLUMNS ' );
29
- }
30
-
31
18
protected function getDescriptor ()
32
19
{
33
20
return new TextDescriptor ();
You can’t perform that action at this time.
0 commit comments