Skip to content

Commit

Permalink
Merge branch '5.2' into 5.3
Browse files Browse the repository at this point in the history
* 5.2:
  -
  • Loading branch information
nicolas-grekas committed Jun 27, 2021
1 parent 2575911 commit eacf514
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions Tests/Command/UserPasswordHashCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ class UserPasswordHashCommandTest extends TestCase
private $passwordHasherCommandTester;
private $colSize;

protected function setUp(): void
{
$this->colSize = getenv('COLUMNS');
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
}

protected function tearDown(): void
{
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
}

public function testEncodePasswordEmptySalt()
{
$this->passwordHasherCommandTester->execute([
Expand Down Expand Up @@ -299,6 +288,9 @@ public function testThrowsExceptionOnNoConfiguredHashers()

protected function setUp(): void
{
$this->colSize = getenv('COLUMNS');
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));

$hasherFactory = new PasswordHasherFactory([
InMemoryUser::class => ['algorithm' => 'plaintext'],
'Custom\Class\Native\User' => ['algorithm' => 'native', 'cost' => 10],
Expand All @@ -315,6 +307,7 @@ protected function setUp(): void
protected function tearDown(): void
{
$this->passwordHasherCommandTester = null;
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
}

private function setupArgon2i()
Expand Down

0 comments on commit eacf514

Please sign in to comment.