for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Firesphere\YubiAuth\Tests;
use Yubikey\Response;
use Yubikey\ResponseCollection;
use Yubikey\Validate;
class MockYubiValidateFalse extends Validate
{
public function check($otp, $multi = false)
$nonce = $this->generateNonce();
$result = new Response(
[
'h' => '',
'otp' => $otp,
'status' => 'REPLAYED_OTP',
'nonce' => $nonce,
'inputNonce' => $nonce,
'inputOtp' => $otp,
'host' => 'api.yubico.com',
'sl' => 25,
'timestamp' => time()
]
);
return new ResponseCollection([$result]);
}