File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,14 @@ protected function setUp()
48
48
$ this ->colSize = getenv ('COLUMNS ' );
49
49
}
50
50
51
+ protected function tearDown ()
52
+ {
53
+ putenv ($ this ->colSize ? 'COLUMNS= ' .$ this ->colSize : 'COLUMNS ' );
54
+ putenv ('SHELL_VERBOSITY ' );
55
+ unset($ _ENV ['SHELL_VERBOSITY ' ]);
56
+ unset($ _SERVER ['SHELL_VERBOSITY ' ]);
57
+ }
58
+
51
59
public static function setUpBeforeClass ()
52
60
{
53
61
self ::$ fixturesPath = realpath (__DIR__ .'/Fixtures/ ' );
@@ -1749,14 +1757,6 @@ public function testThrowingErrorListener()
1749
1757
$ tester = new ApplicationTester ($ application );
1750
1758
$ tester ->run (['command ' => 'foo ' ]);
1751
1759
}
1752
-
1753
- protected function tearDown ()
1754
- {
1755
- putenv ($ this ->colSize ? 'COLUMNS ' : 'COLUMNS= ' .$ this ->colSize );
1756
- putenv ('SHELL_VERBOSITY ' );
1757
- unset($ _ENV ['SHELL_VERBOSITY ' ]);
1758
- unset($ _SERVER ['SHELL_VERBOSITY ' ]);
1759
- }
1760
1760
}
1761
1761
1762
1762
class CustomApplication extends Application
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ protected function setUp()
33
33
34
34
protected function tearDown ()
35
35
{
36
- putenv ($ this ->colSize ? 'COLUMNS ' : ' COLUMNS = ' .$ this ->colSize );
36
+ putenv ($ this ->colSize ? 'COLUMNS= ' .$ this ->colSize : ' COLUMNS ' );
37
37
}
38
38
39
39
public function testMultipleStart ()
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ protected function setUp()
38
38
39
39
protected function tearDown ()
40
40
{
41
- putenv ($ this ->colSize ? 'COLUMNS ' : ' COLUMNS = ' .$ this ->colSize );
41
+ putenv ($ this ->colSize ? 'COLUMNS= ' .$ this ->colSize : ' COLUMNS ' );
42
42
$ this ->command = null ;
43
43
$ this ->tester = null ;
44
44
}
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ protected function setUp()
25
25
$ this ->lineSize = getenv ('LINES ' );
26
26
}
27
27
28
+ protected function tearDown ()
29
+ {
30
+ putenv ($ this ->colSize ? 'COLUMNS= ' .$ this ->colSize : 'COLUMNS ' );
31
+ putenv ($ this ->lineSize ? 'LINES ' : 'LINES= ' .$ this ->lineSize );
32
+ }
33
+
28
34
public function test ()
29
35
{
30
36
putenv ('COLUMNS=100 ' );
@@ -40,12 +46,6 @@ public function test()
40
46
$ this ->assertSame (60 , $ terminal ->getHeight ());
41
47
}
42
48
43
- protected function tearDown ()
44
- {
45
- putenv ($ this ->colSize ? 'COLUMNS ' : 'COLUMNS= ' .$ this ->colSize );
46
- putenv ($ this ->lineSize ? 'LINES ' : 'LINES= ' .$ this ->lineSize );
47
- }
48
-
49
49
public function test_zero_values ()
50
50
{
51
51
putenv ('COLUMNS=0 ' );
You can’t perform that action at this time.
0 commit comments