IsNotEqualTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 19
rs 10
c 3
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFilterWillApplyFilteringData() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArpTest\DoctrineQueryFilter\Filter;
6
7
use Arp\DoctrineQueryFilter\Filter\IsNotEqual;
8
9
/**
10
 * @covers \Arp\DoctrineQueryFilter\Filter\IsNotEqual
11
 * @covers \Arp\DoctrineQueryFilter\Filter\AbstractExpression
12
 * @covers \Arp\DoctrineQueryFilter\Filter\AbstractFilter
13
 */
14
final class IsNotEqualTest extends AbstractComparisonTest
15
{
16
    protected string $filterClassName = IsNotEqual::class;
17
18
    protected string $expressionMethodName = 'neq';
19
20
    protected string $expressionSymbol = '!=';
21
22
    /**
23
     * @return array<mixed>
24
     */
25
    public function getFilterWillApplyFilteringData(): array
26
    {
27
        return [
28
            [
29
                [
30
                    'name' => 'test',
31
                    'field' => 'hello',
32
                    'value' => 123,
33
                ],
34
            ],
35
        ];
36
    }
37
}
38