本文整理匯總了PHP中Members::with方法的典型用法代碼示例。如果您正苦於以下問題:PHP Members::with方法的具體用法?PHP Members::with怎麽用?PHP Members::with使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Members
的用法示例。
在下文中一共展示了Members::with方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
/** @test */
function it_should_update_the_information_of_a_registered_member()
{
$member = $this->members->with(Identifier::fromString('wxyz'));
$member->transfer(Money::MXN(500), $this->existingMember);
$this->members->update($this->existingMember);
$this->assertBalanceAmounts(3500, $this->existingMember, "Current member balance should be 3500");
}
示例2: myFriendSBalanceShouldBeMxn
/**
* @Then my friend's balance should be :amount MXN
*/
public function myFriendSBalanceShouldBeMxn($amount)
{
$forMyFriend = $this->members->with(Identifier::fromString('xyz'));
$this->membersHelper->assertBalanceIs($amount, $forMyFriend);
}