Completed
Push — master ( fef923...c0df34 )
by Rafael
03:03
created

StringParserTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A buildParser() 0 4 1
A getTypes() 0 4 1
A getParseValueMap() 0 7 1
1
<?php
2
3
/**
4
 * LICENSE: This file is subject to the terms and conditions defined in
5
 * file 'LICENSE', which is part of this source code package.
6
 *
7
 * @copyright 2016 Copyright(c) - All rights reserved.
8
 */
9
10
namespace Rafrsr\LibArray2Object\Tests\Parser;
11
12
use Rafrsr\LibArray2Object\Parser\StringParser;
13
use Rafrsr\LibArray2Object\Tests\Fixtures\Team;
14
15
class StringParserTest extends ParserTester
16
{
17
    public function buildParser()
18
    {
19
        return new StringParser();
20
    }
21
22
    public function getTypes()
23
    {
24
        return ['string'];
25
    }
26
27
    public function getParseValueMap()
28
    {
29
        return [
30
            'string' => 'string',
31
            'Team Name' => new Team('Team Name'),
32
        ];
33
    }
34
}
35