本文整理匯總了PHP中Owner::isProLevel方法的典型用法代碼示例。如果您正苦於以下問題:PHP Owner::isProLevel方法的具體用法?PHP Owner::isProLevel怎麽用?PHP Owner::isProLevel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Owner
的用法示例。
在下文中一共展示了Owner::isProLevel方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testIsMember
public function testIsMember()
{
$owner_values = array('id' => 10, "full_name" => "ThinkUp J. User", "email" => 'tu_user@example.com', 'last_login' => '1/1/2010', 'is_admin' => 0, 'is_activated' => 1, 'account_status' => '', 'failed_logins' => 19, 'email_notification_frequency' => 'both', 'membership_level' => null);
$owner = new Owner($owner_values);
$this->assertFalse($owner->isMemberAtAnyLevel());
$owner->membership_level = 'Member';
$this->assertTrue($owner->isMemberAtAnyLevel());
$this->assertTrue($owner->isMemberLevel());
$this->assertFalse($owner->isProLevel());
$owner->membership_level = 'Early Bird';
$this->assertTrue($owner->isMemberAtAnyLevel());
$this->assertTrue($owner->isMemberLevel());
$this->assertFalse($owner->isProLevel());
$owner->membership_level = 'Late Bird';
$this->assertTrue($owner->isMemberAtAnyLevel());
$this->assertTrue($owner->isMemberLevel());
$this->assertFalse($owner->isProLevel());
$owner->membership_level = 'Pro';
$this->assertTrue($owner->isMemberAtAnyLevel());
$this->assertFalse($owner->isMemberLevel());
$this->assertTrue($owner->isProLevel());
$owner->membership_level = 'Exec';
$this->assertTrue($owner->isMemberAtAnyLevel());
$this->assertFalse($owner->isMemberLevel());
$this->assertFalse($owner->isProLevel());
$owner->membership_level = 'pajamas';
$this->assertFalse($owner->isMemberAtAnyLevel());
$this->assertFalse($owner->isMemberLevel());
$this->assertFalse($owner->isProLevel());
}