| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | function it_can_be_created(Id $aggregateId) |
||
| 24 | { |
||
| 25 | $this->beConstructedWith($aggregateId, 'StreamName'); |
||
| 26 | $this->shouldHaveType(StreamName::class); |
||
| 27 | $this->aggregateId()->shouldReturn($aggregateId); |
||
| 28 | |||
| 29 | $aggregateId->id()->willReturn('123456789'); |
||
| 30 | $this->name()->shouldReturn('StreamName-123456789'); |
||
| 31 | $this->__toString()->shouldReturn('StreamName-123456789'); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |