| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 32 |