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

U2fRegistrationTest::testResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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