expectException(InvariantViolationException::class); Hash\hash('Hello', 'base64'); } /** * @return Generator */ public function provideHashData(): Generator { yield ['2aae6c35c94fcfb415dbe95f408b9ce91ee846ed', 'hello world', 'sha1']; yield ['5eb63bbbe01eeed093cb22bb8f5acdc3', 'hello world', 'md5']; } }