MethodTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetRegisterHandler() 0 4 1
A testGetVerifyHandler() 0 4 1
1
<?php
2
3
namespace SilverStripe\MFA\Tests\BasicMath;
4
5
use SilverStripe\Dev\SapphireTest;
6
use SilverStripe\MFA\Method\Handler\VerifyHandlerInterface;
7
use SilverStripe\MFA\Method\Handler\RegisterHandlerInterface;
8
use SilverStripe\MFA\Tests\Stub\BasicMath\Method;
9
10
class MethodTest extends SapphireTest
11
{
12
    public function testGetVerifyHandler()
13
    {
14
        $method = new Method();
15
        $this->assertInstanceOf(VerifyHandlerInterface::class, $method->getVerifyHandler());
16
    }
17
18
    public function testGetRegisterHandler()
19
    {
20
        $method = new Method();
21
        $this->assertInstanceOf(RegisterHandlerInterface::class, $method->getRegisterHandler());
22
    }
23
}
24