BinaryDataSerialiserTest::testSerialise()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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 Mockery as m;
18
use Graze\UnicontrollerClient\Serialiser\BinaryDataSerialiser;
19
20
class BinaryDataSerialiserTest extends \PHPUnit_Framework_TestCase
21
{
22
    public function testSerialise()
23
    {
24
        $serialiser = new BinaryDataSerialiser();
25
        $serialised = $serialiser->serialise('this is binary data');
26
        $this->assertEquals("BinaryData,19,\r\nthis is binary data\r\nBinaryEnd", $serialised);
27
    }
28
}
29