Skip to content

Commit e28476b

Browse files
Merge branch '5.2' into 5.3
* 5.2: -
2 parents 881cd5b + 60e0c8c commit e28476b

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Tests/Functional/UserPasswordEncoderCommandTest.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ class UserPasswordEncoderCommandTest extends AbstractWebTestCase
3333
private $passwordEncoderCommandTester;
3434
private $colSize;
3535

36-
protected function setUp(): void
37-
{
38-
$this->colSize = getenv('COLUMNS');
39-
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
40-
}
41-
42-
protected function tearDown(): void
43-
{
44-
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
45-
}
46-
4736
public function testEncodePasswordEmptySalt()
4837
{
4938
$this->passwordEncoderCommandTester->execute([
@@ -328,6 +317,9 @@ public function testThrowsExceptionOnNoConfiguredEncoders()
328317

329318
protected function setUp(): void
330319
{
320+
$this->colSize = getenv('COLUMNS');
321+
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
322+
331323
$kernel = $this->createKernel(['test_case' => 'PasswordEncode']);
332324
$kernel->boot();
333325

@@ -341,6 +333,7 @@ protected function setUp(): void
341333
protected function tearDown(): void
342334
{
343335
$this->passwordEncoderCommandTester = null;
336+
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
344337
}
345338

346339
private function setupArgon2i()

0 commit comments

Comments
 (0)