• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jorge07 / symfony-5-es-cqrs-boilerplate / #166

06 Feb 2026 10:12AM UTC coverage: 88.404% (+1.2%) from 87.168%
#166

push

web-flow
Merge c345ce76d into 847c843ce

36 of 45 new or added lines in 21 files covered. (80.0%)

9 existing lines in 4 files now uncovered.

587 of 664 relevant lines covered (88.4%)

8.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/App/User/Domain/ValueObject/Email.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\User\Domain\ValueObject;
6

7
use Assert\Assertion;
8
use Assert\AssertionFailedException;
9
use JsonSerializable;
10

11
final class Email implements JsonSerializable, \Stringable
12
{
13
    private function __construct(private readonly string $email)
14
    {
15
    }
39✔
16

17
    /**
18
     * @throws AssertionFailedException
19
     */
20
    public static function fromString(string $email): self
21
    {
22
        Assertion::email($email, 'Not a valid email');
43✔
23

24
        return new self($email);
39✔
25
    }
26

27
    public function toString(): string
28
    {
29
        return $this->email;
36✔
30
    }
31

32
    public function __toString(): string
33
    {
34
        return $this->email;
3✔
35
    }
36

37
    public function equals(self $other): bool
38
    {
NEW
39
        return $this->email === $other->email;
×
40
    }
41

42
    public function jsonSerialize(): string
43
    {
44
        return $this->toString();
1✔
45
    }
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc