예제 #1
0
 function Test_of_getSerializedAttributes_and_setSerializeAttribute()
 {
     $User = new AkTestUser();
     $User->addCombinedAttributeConfiguration('name', "%s %s", 'first_name', 'last_name');
     $User->setSerializeAttribute('user_name');
     $User->setSerializeAttribute('name');
     $User->setSerializeAttribute('not_valid');
     $User->setSerializeAttribute('email', 'MimeEmail');
     $expected = array('user_name' => null, 'email' => 'MimeEmail');
     $this->assertEqual($expected, $User->getSerializedAttributes());
 }