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

CallableMatcherTest::getNotEquals()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
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
10
namespace Rafrsr\LibArray2Object\Tests\Matcher;
11
12
use Rafrsr\LibArray2Object\Matcher\CallableMatcher;
13
14
class CallableMatcherTest extends PropertyMatcherTester
15
{
16
    /**
17
     * @inheritDoc
18
     */
19
    public function buildMatcher()
20
    {
21
        return new CallableMatcher(
22
            function (\ReflectionProperty $property, $givenName) {
23
                return ($givenName === 'prueba' && $property->getName() === 'test');
24
            }
25
        );
26
    }
27
28
    /**
29
     * @inheritDoc
30
     */
31
    public function getEquals()
32
    {
33
        return [
34
            'test' => 'prueba'
35
        ];
36
    }
37
38
    /**
39
     * @inheritDoc
40
     */
41
    public function getNotEquals()
42
    {
43
        return [
44
            'test' => 'name'
45
        ];
46
    }
47
}