/** * @requires extension libsodium * @expectedException scrothers\laravelsodium\Exceptions\HashLengthException * @expectedExceptionMessageRegExp #Hash length should be between \d+ and \d+# */ public function testSodiumRawHashLengthBounds() { SodiumLibrary::rawHash('foo', null, 1); }