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

CamelizeMatcherTest::buildMatcher()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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