1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Correct rule hash test

This commit is contained in:
Nils Adermann 2015-07-08 19:36:13 +02:00
parent c7e1f49e78
commit b869fa9662

View file

@ -30,7 +30,8 @@ class RuleTest extends TestCase
{ {
$rule = new Rule(array(123), 'job1', null); $rule = new Rule(array(123), 'job1', null);
$this->assertEquals(substr(md5('123'), 0, 5), $rule->getHash()); $hash = unpack('ihash', md5('123', true));
$this->assertEquals($hash['hash'], $rule->getHash());
} }
public function testSetAndGetId() public function testSetAndGetId()