StringTokeniserTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 3
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInstanceOf() 0 7 1
1
<?php
2
/**
3
 * This file is part of graze/csv-token
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/csv-token/blob/master/LICENSE.md
11
 * @link    https://github.com/graze/csv-token
12
 */
13
14
namespace Graze\CsvToken\Test\Unit;
15
16
use Graze\CsvToken\Csv\CsvConfiguration;
17
use Graze\CsvToken\Test\TestCase;
18
use Graze\CsvToken\Tokeniser\StreamTokeniser;
19
use Graze\CsvToken\Tokeniser\StringTokeniser;
20
use Graze\CsvToken\Tokeniser\TokeniserInterface;
21
22
class StringTokeniserTest extends TestCase
23
{
24
    public function testInstanceOf()
25
    {
26
        $tokeniser = new StringTokeniser(new CsvConfiguration(), '"test","data"');
27
28
        static::assertInstanceOf(StreamTokeniser::class, $tokeniser);
29
        static::assertInstanceOf(TokeniserInterface::class, $tokeniser);
30
    }
31
}
32