Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
| DummyAuthenticatedUser | |
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
2.50 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getPassword | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Auth\Infrastructure\Security\User; |
| 4 | |
| 5 | use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; |
| 6 | |
| 7 | /** |
| 8 | * Dummy authenticated user to allow Symfony's UserPasswordHasherInterface usage |
| 9 | * |
| 10 | * @author Wilhelm Zwertvaegher |
| 11 | */ |
| 12 | final readonly class DummyAuthenticatedUser implements PasswordAuthenticatedUserInterface |
| 13 | { |
| 14 | |
| 15 | public function __construct(private string $password) |
| 16 | {} |
| 17 | |
| 18 | public function getPassword(): string |
| 19 | { |
| 20 | return $this->password; |
| 21 | } |
| 22 | } |