GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#53)
by Alessandro
02:05
created

OpertatorTest::testGetOperators()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 49
Code Lines 32

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 32
nc 1
nop 0
dl 0
loc 49
rs 9.2258
c 1
b 0
f 1
1
<?php
2
3
namespace Mado\QueryBundle\Tests\Services;
4
5
use Mado\QueryBundle\Dictionary\Operators;
6
use PHPUnit\Framework\TestCase;
7
8
class OpertatorTest extends TestCase
9
{
10
    public function testGetOperators()
11
    {
12
        $operators = Operators::getOperators();
13
14
        $expectedOperators = [
15
            'eq' => [
16
                'meta' => '=',
17
            ],
18
            'neq' => [
19
                'meta' => '!=',
20
            ],
21
            'gt' => [
22
                'meta' => '>',
23
            ],
24
            'gte' => [
25
                'meta' => '>=',
26
            ],
27
            'lt' => [
28
                'meta' => '<',
29
            ],
30
            'lte' => [
31
                'meta' => '<=',
32
            ],
33
            'startswith' => [
34
                'meta' => 'LIKE',
35
                'substitution_pattern' => '{string}%'
36
            ],
37
            'contains' => [
38
                'meta' => 'LIKE',
39
                'substitution_pattern' => '%{string}%'
40
            ],
41
            'notcontains' => [
42
                'meta' => 'NOT LIKE',
43
                'substitution_pattern' => '%{string}%'
44
            ],
45
            'endswith' => [
46
                'meta' => 'LIKE',
47
                'substitution_pattern' => '%{string}'
48
            ],
49
            'list' => [
50
                'meta' => 'IN',
51
                'substitution_pattern' => '({string})',
52
            ],
53
            'field_eq' => [
54
                'meta' => '=',
55
            ],
56
        ];
57
58
        $this->assertEquals($expectedOperators, $operators);
59
    }
60
61
62
}
63