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

LevenshteinMatcherTest::getNotEquals()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
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\LevenshteinMatcher;
13
14
class LevenshteinMatcherTest extends PropertyMatcherTester
15
{
16
17
    /**
18
     * @inheritDoc
19
     */
20
    public function buildMatcher()
21
    {
22
        return new LevenshteinMatcher();
23
    }
24
25
    /**
26
     * @inheritDoc
27
     */
28
    public function getEquals()
29
    {
30
        return [
31
            'test' => 'Test',
32
            'test_property' => 'TestProperty',
33
            'test_properti' => 'TestProperty',
34
            'testing' => 'test_ng'
35
        ];
36
    }
37
38
    /**
39
     * @inheritDoc
40
     */
41
    public function getNotEquals()
42
    {
43
        return [
44
            'testing' => 'test',
45
            'test_prop' => 'test_node',
46
        ];
47
    }
48
}
49