TelnetResponseTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetters() 0 12 1
1
<?php
2
3
namespace Graze\TelnetClient\Test\Unit;
4
5
use Graze\TelnetClient\TelnetResponse;
6
use PHPUnit_Framework_TestCase;
7
8
class TelnetResponseTest extends PHPUnit_Framework_TestCase
9
{
10
    public function testGetters()
11
    {
12
        $isError = true;
13
        $responseText = 'this is text';
14
        $promptMatches = [1, 'two'];
15
16
        $response = new TelnetResponse($isError, $responseText, $promptMatches);
17
18
        $this->assertEquals($isError, $response->isError());
19
        $this->assertEquals($responseText, $response->getResponseText());
20
        $this->assertEquals($promptMatches, $response->getPromptMatches());
21
    }
22
}
23