GreaterTest::process()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Tests\PHPSA\Compiler\Expression\Operators\Comparison;
4
5
use PhpParser\Node;
6
use PHPSA\CompiledExpression;
7
use PHPSA\Compiler\Expression;
8
9
/**
10
 * Class GreaterTest
11
 * @package Tests\PHPSA\Expression\Operators\Comparison
12
 *
13
 * @see PHPSA\Compiler\Expression\Operators\Comparison\Greater
14
 */
15
class GreaterTest extends BaseTestCase
16
{
17
    /**
18
     * @param \PhpParser\Node\Scalar $a
19
     * @param \PhpParser\Node\Scalar $b
20
     * @return Node\Expr\BinaryOp\Greater
21
     */
22
    protected function buildExpression($a, $b)
23
    {
24
        return new Node\Expr\BinaryOp\Greater($a, $b);
25
    }
26
27
    /**
28
     * @param $a
29
     * @param $b
30
     * @return bool
31
     */
32
    protected function process($a, $b)
33
    {
34
        return $a > $b;
35
    }
36
}
37