コード例 #1
0
 function let(Id $aggregateId)
 {
     $aggregateId->__toString()->willReturn('id');
     $this->beConstructedWith($aggregateId);
 }
コード例 #2
0
 function it_does_not_get_any_aggregate(Id $aggregateId)
 {
     $aggregateId->__toString()->willReturn('id');
     $this->shouldThrow(AggregateDoesNotExistException::class)->duringStreamOfId($aggregateId);
 }