CommandGenericTest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 39
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommand() 0 4 1
A getRawTelnetResponse() 0 4 1
A getExpectedResponseText() 0 4 1
A getExpectedArgumentText() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of graze/dynamark3-client.
5
 *
6
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @license https://github.com/graze/dynamark3-client/blob/master/LICENSE.md
12
 * @link https://github.com/graze/dynamark3-client
13
 */
14
15
namespace Graze\Dynamark3Client\Test\Unit\Command;
16
17
use \Graze\Dynamark3Client\Test\AbstractCommandTestCase;
18
use \Graze\Dynamark3Client\Dynamark3Constants;
19
use \Graze\Dynamark3Client\Command\CommandGeneric;
20
21
class CommandGenericTest extends AbstractCommandTestCase
22
{
23
    /**
24
     * @var string
25
     */
26
    protected $commandText;
27
28
    /**
29
     * @return \Graze\Dynamark3Client\Command\CommandInterface
30
     */
31
    protected function getCommand()
32
    {
33
        return new CommandGeneric('MARK STOP');
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    protected function getRawTelnetResponse()
40
    {
41
        return Dynamark3Constants::PROMPT . Dynamark3Constants::LINE_ENDING;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    protected function getExpectedResponseText()
48
    {
49
        return Dynamark3Constants::PROMPT;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    protected function getExpectedArgumentText()
56
    {
57
        return ' "a" "1"';
58
    }
59
}
60