Beispiel #1
0
 function testChecksumFieldValueDependsOnSalt()
 {
     $hidden1 = new T_Form_Hidden('alias', 'value');
     $hidden2 = new T_Form_Hidden('alias', 'value');
     $hidden1->setFieldnameSalt('salt1', new T_Filter_RepeatableHash());
     $hidden2->setFieldnameSalt('salt2', new T_Filter_RepeatableHash());
     $this->assertNotEquals($hidden1->getChecksumFieldValue(), $hidden2->getChecksumFieldValue());
 }