| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | function it_creates_event() |
||
| 23 | { |
||
| 24 | $id = new UserId('user-id'); |
||
| 25 | $email = new UserEmail('[email protected]'); |
||
| 26 | $this->beConstructedWith($id, $email); |
||
| 27 | $this->shouldHaveType(UserProfileEdited::class); |
||
| 28 | |||
| 29 | $this->id()->shouldReturn($id); |
||
| 30 | $this->email()->shouldReturn($email); |
||
| 31 | $this->occurredOn()->shouldReturnAnInstanceOf(\DateTimeImmutable::class); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |