/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage 'foo' digest is not supported. */ public function testDigestIsNotSupported() { $otp = new HOTP(); $otp->setDigest('foo'); }