Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
50.00% covered (danger)
50.00%
1 / 2
50.00% covered (danger)
50.00%
1 / 2
50.00% covered (danger)
50.00%
1 / 2
50.00% covered (danger)
50.00%
1 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
DummyAuthenticatedUser
50.00% covered (danger)
50.00%
1 / 2
50.00% covered (danger)
50.00%
1 / 2
50.00% covered (danger)
50.00%
1 / 2
50.00% covered (danger)
50.00%
1 / 2
2.50
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPassword
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Auth\Infrastructure\Security\User;
4
5use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
6
7/**
8 * Dummy authenticated user to allow Symfony's UserPasswordHasherInterface usage
9 *
10 * @author Wilhelm Zwertvaegher
11 */
12final 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}

Paths

Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once. Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

DummyAuthenticatedUser->__construct
15    public function __construct(private string $password)
16    {}
DummyAuthenticatedUser->getPassword
20        return $this->password;
21    }
{main}
3namespace App\Auth\Infrastructure\Security\User;
4
5use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
6
7/**
8 * Dummy authenticated user to allow Symfony's UserPasswordHasherInterface usage
9 *
10 * @author Wilhelm Zwertvaegher
11 */
12final 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    }