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

MapMatcherTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
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 36
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A buildMatcher() 0 9 1
A getEquals() 0 7 1
A 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
10
namespace Rafrsr\LibArray2Object\Tests\Matcher;
11
12
use Rafrsr\LibArray2Object\Matcher\MapMatcher;
13
14
class MapMatcherTest extends PropertyMatcherTester
15
{
16
    /**
17
     * @inheritDoc
18
     */
19
    public function buildMatcher()
20
    {
21
        return new MapMatcher(
22
            [
23
                'test' => 'prueba',
24
                'name' => 'nombre'
25
            ]
26
        );
27
    }
28
29
    /**
30
     * @inheritDoc
31
     */
32
    public function getEquals()
33
    {
34
        return [
35
            'test' => 'prueba',
36
            'name' => 'nombre',
37
        ];
38
    }
39
40
    /**
41
     * @inheritDoc
42
     */
43
    public function getNotEquals()
44
    {
45
        return [
46
            'test' => 'name'
47
        ];
48
    }
49
}