コード例 #1
0
ファイル: LeanUserTest.php プロジェクト: yuzhibiao/php-sdk
 public function testSetGetFields()
 {
     $user = new LeanUser();
     $user->setUsername("alice");
     $user->setEmail("*****@*****.**");
     $user->setMobilePhoneNumber("18612340000");
     $this->assertEquals("alice", $user->getUsername());
     $this->assertEquals("*****@*****.**", $user->getEmail());
     $this->assertEquals("18612340000", $user->getMobilePhoneNumber());
     // additional fields could be set too
     $user->set("age", 24);
     $this->assertEquals(24, $user->get("age"));
 }