CamelizeMatcherTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A buildMatcher() 0 4 1
A getEquals() 0 11 1
A getNotEquals() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the rafrsr/lib-array2object package.
5
 *
6
 * (c) Rafael SR <https://github.com/rafrsr>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
namespace Rafrsr\LibArray2Object\Tests\Matcher;
12
13
use Rafrsr\LibArray2Object\Matcher\CamelizeMatcher;
14
15
class CamelizeMatcherTest extends PropertyMatcherTester
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function buildMatcher()
21
    {
22
        return new CamelizeMatcher();
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function getEquals()
29
    {
30
        return [
31
            'test' => 'test',
32
            'Test' => 'Test',
33
            'ErrorCode' => 'error_code',
34
            'errorCode' => 'error_code',
35
            'errorcode' => 'error_code',
36
            'errorCodes' => 'errorcodes',
37
        ];
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function getNotEquals()
44
    {
45
        return [
46
            'test' => 'testing',
47
        ];
48
    }
49
}
50