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'); }
function let(UserId $id) { $id->id()->willReturn('user-id'); $this->beConstructedWith($id); }
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())); }