/** * Test that binary string with length of 16 is returned. */ public function testSimpleHash() { $hash = UniqueStringUtil::simpleHash(); $this->assertTrue(is_int(bindec($hash))); $this->assertTrue(strlen($hash) === 16); }