コード例 #1
0
ファイル: RuleTest.php プロジェクト: shabbirvividads/magento2
 public function testGetHash()
 {
     $rule = new Rule($this->pool, array(123), 'job1', null);
     $this->assertEquals(substr(md5('123'), 0, 5), $rule->getHash());
 }
コード例 #2
0
ファイル: RuleTest.php プロジェクト: alancleaver/composer
 public function testGetHash()
 {
     $rule = new Rule(array(123), 'job1', null);
     $hash = unpack('ihash', md5('123', true));
     $this->assertEquals($hash['hash'], $rule->getHash());
 }
コード例 #3
0
ファイル: RuleTest.php プロジェクト: nlegoff/composer
 public function testGetHash()
 {
     $rule = new Rule(array(), 'job1', null);
     $rule->ruleHash = '123';
     $this->assertEquals('123', $rule->getHash());
 }