Passed
Push — master ( aec067...d0c8c6 )
by Simon
04:23
created

MockYubiValidateException::check()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Firesphere\YubiAuth\Tests;
4
5
use Exception;
6
use Yubikey\Validate;
7
8
/**
9
 * Class MockYubiValidateException
10
 * @package Firesphere\YubiAuth\Tests
11
 */
12
class MockYubiValidateException extends Validate
13
{
14
    /**
15
     * @param string $otp
16
     * @param bool $multi
17
     * @return void|\Yubikey\Response
18
     * @throws Exception
19
     */
20
    public function check($otp, $multi = false)
21
    {
22
        throw new Exception('I do not like this', 1);
23
    }
24
}
25