yield 'user_class_given' =>
[ ['p@ssw0rd', 'App'
],
['App\Entity\User'
],
];
} 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
],
'Custom\Class\Pbkdf2\User' =>
['algorithm' => 'pbkdf2', 'hash_algorithm' => 'sha512', 'iterations' => 1000, 'encode_as_base64' => true
],
'Custom\Class\Test\User' =>
['algorithm' => 'test'
],
]);
$this->passwordHasherCommandTester =
new CommandTester(new UserPasswordHashCommand( $hasherFactory,
[InMemoryUser::
class, 'Custom\Class\Native\User', 'Custom\Class\Pbkdf2\User', 'Custom\Class\Test\User'
] ));
}