AbstractHttpAdapterTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetAndSetProtocolVersion() 0 8 1
1
<?php
2
3
namespace Robbie\Psr7\Tests;
4
5
use PHPUnit_Framework_TestCase;
6
use Robbie\Psr7\AbstractHttpAdapter;
7
8
class AbstractHttpAdapterTest extends PHPUnit_Framework_TestCase
9
{
10
    public function testGetAndSetProtocolVersion()
11
    {
12
        /** @var AbstractHttpAdapter $mock */
13
        $mock = $this->getMockForAbstractClass(AbstractHttpAdapter::class);
14
15
        $mock->setProtocolVersion('1.0');
16
        $this->assertSame('1.0', $mock->getProtocolVersion());
17
    }
18
}
19