Completed
Pull Request — master (#6)
by John
02:03
created

CommandGenericTest::getRawTelnetResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
nc 1
cc 1
eloc 2
nop 0
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