generateParamsHashKey() public static method

Generate a unique hash based on the keys of the extra params
public static generateParamsHashKey ( $params ) : string
return string Unique MD5 hash
コード例 #1
0
 /**
  * Test the hsah key generation
  */
 public function testGenerateParamsHashKey()
 {
     $a = array('optionA', 'optionB', 'optionC');
     $b = array('optionA', 'optionB', 'optionC');
     $this->assertEquals(ExtraOptionsResolver::generateParamsHashKey($a), ExtraOptionsResolver::generateParamsHashKey($b));
 }