This commit is contained in:
Nicolas Grekas 2021-06-27 14:24:10 +02:00
parent 058168e2ed
commit decf443a20
1 changed files with 4 additions and 11 deletions

View File

@ -31,17 +31,6 @@ class UserPasswordEncoderCommandTest extends AbstractWebTestCase
private $passwordEncoderCommandTester;
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->passwordEncoderCommandTester->execute([
@ -326,6 +315,9 @@ EOTXT
protected function setUp(): void
{
$this->colSize = getenv('COLUMNS');
putenv('COLUMNS='.(119 + \strlen(\PHP_EOL)));
$kernel = $this->createKernel(['test_case' => 'PasswordEncode']);
$kernel->boot();
@ -339,6 +331,7 @@ EOTXT
protected function tearDown(): void
{
$this->passwordEncoderCommandTester = null;
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
}
private function setupArgon2i()