Skip to content

Commit 48329a5

Browse files
-
1 parent dde38bc commit 48329a5

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
@@ -31,17 +31,6 @@ class UserPasswordEncoderCommandTest extends AbstractWebTestCase
3131
private $passwordEncoderCommandTester;
3232
private $colSize;
3333

34-
protected function setUp(): void
35-
{
36-
$this->colSize = getenv('COLUMNS');
37-
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
38-
}
39-
40-
protected function tearDown(): void
41-
{
42-
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
43-
}
44-
4534
public function testEncodePasswordEmptySalt()
4635
{
4736
$this->passwordEncoderCommandTester->execute([
@@ -326,6 +315,9 @@ public function testThrowsExceptionOnNoConfiguredEncoders()
326315

327316
protected function setUp(): void
328317
{
318+
$this->colSize = getenv('COLUMNS');
319+
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
320+
329321
$kernel = $this->createKernel(['test_case' => 'PasswordEncode']);
330322
$kernel->boot();
331323

@@ -339,6 +331,7 @@ protected function setUp(): void
339331
protected function tearDown(): void
340332
{
341333
$this->passwordEncoderCommandTester = null;
334+
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
342335
}
343336

344337
private function setupArgon2i()

0 commit comments

Comments
 (0)