StringEscaperTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testEscape() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of graze/unicontroller-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/unicontroller-client/blob/master/LICENSE.md
12
 * @link https://github.com/graze/unicontroller-client
13
 */
14
15
namespace Graze\UniControllerClient\Test\Unit;
16
17
use Graze\UnicontrollerClient\StringEscaper;
18
19
class StringEscaperTest extends \PHPUnit_Framework_TestCase
20
{
21
    public function testEscape()
22
    {
23
        $stringEscaper = new StringEscaper();
24
        $this->assertEquals("\x02this is a test\x03", $stringEscaper->escape('this is a test'));
25
    }
26
}
27