public function testGetHash() { $rule = new Rule($this->pool, array(123), 'job1', null); $this->assertEquals(substr(md5('123'), 0, 5), $rule->getHash()); }
public function testGetHash() { $rule = new Rule(array(123), 'job1', null); $hash = unpack('ihash', md5('123', true)); $this->assertEquals($hash['hash'], $rule->getHash()); }
public function testGetHash() { $rule = new Rule(array(), 'job1', null); $rule->ruleHash = '123'; $this->assertEquals('123', $rule->getHash()); }