Passed
Branch master (17d5a9)
by michael
08:14
created

U2fRegistrationTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 14
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the U2F Security bundle.
5
 *
6
 * (c) Michael Barbey <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Mbarbey\U2fSecurityBundle\Tests\Entity\U2fRegistration;
13
14
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
15
16
class U2fRegistrationTest extends TestCase
17
{
18
    public function testResponse()
19
    {
20
        $registration = $this->getRegistration();
21
        $this->assertNull($registration->getResponse());
22
23
        $registration->setResponse('test');
24
        $this->assertEquals($registration->getResponse(), 'test');
25
    }
26
27
    protected function getRegistration()
28
    {
29
        return $this->getMockForAbstractClass('Mbarbey\U2fSecurityBundle\Model\U2fRegistration\U2fRegistration');
30
    }
31
}
32