StringTokeniserTest::testInstanceOf()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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