PHP Classes

File: tests/cases/MurmurTest.php

Recommend this page to a friend!
  Classes of Stefano Azzolini   PHP Murmurhash   tests/cases/MurmurTest.php   Download  
File: tests/cases/MurmurTest.php
Role: Unit test script
Content type: text/plain
Description: Class source
Class: PHP Murmurhash
Generate hash values of a string using Murmurhash
Author: By
Last change:
Date: 2 years ago
Size: 376 bytes
 

Contents

Class file image Download
<?php

use lastguest\Murmur;

class
MurmurTest extends \PHPUnit\Framework\TestCase {

    public function
testHash3_int() {
     
$this->assertEquals(236294829, Murmur::hash3_int("The quick brown fox jumps over the lazy dog", 1234567), "hash3_int");
    }

    public function
testHash3() {
     
$this->assertEquals('cnd0ue', Murmur::hash3("Hello World"), "hash3");
    }

}