TelnetResponseTest::testGetters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

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