Completed
Push — master ( 82389f...393c59 )
by Rafael
02:39
created

CamelizeMatcherTester   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A CamelizeMatcherTest::buildMatcher() 0 4 1
A CamelizeMatcherTest::getEquals() 0 11 1
A CamelizeMatcherTest::getNotEquals() 0 6 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
namespace Rafrsr\LibArray2Object\Tests\Matcher;
10
11
use Rafrsr\LibArray2Object\Matcher\CamelizeMatcher;
12
13
class CamelizeMatcherTest extends PropertyMatcherTester
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function buildMatcher()
19
    {
20
        return new CamelizeMatcher();
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function getEquals()
27
    {
28
        return [
29
            'test' => 'test',
30
            'Test' => 'Test',
31
            'ErrorCode' => 'error_code',
32
            'errorCode' => 'error_code',
33
            'errorcode' => 'error_code',
34
            'errorCodes' => 'errorcodes',
35
        ];
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function getNotEquals()
42
    {
43
        return [
44
            'test' => 'testing',
45
        ];
46
    }
47
}
48