public function __construct(UserId $userId)
 {
     parent::__construct(sprintf('The given %s user is already an owner', $userId->id()));
 }
 function it_should_return_message(UserId $userId)
 {
     $userId->id()->shouldBeCalled()->willReturn('user-id');
     $this->getMessage()->shouldReturn('Already exists a user with the "user-id" id');
 }
示例#3
0
文件: UserSpec.php 项目: kreta/kreta
 function let(UserId $id)
 {
     $id->id()->willReturn('user-id');
     $this->beConstructedWith($id);
 }
示例#4
0
 public function userOfId(UserId $id)
 {
     return $this->find($id->id());
 }
 public function __construct(UserId $userId)
 {
     parent::__construct(sprintf('Already exists a user with the "%s" id', $userId->id()));
 }
 public function __construct(UserId $userId)
 {
     parent::__construct(sprintf('The given %s user is not an organization member', $userId->id()));
 }