Passed
Pull Request — master (#18)
by Marc
03:37
created

ExprTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 33
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testGetQuery() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace TBolier\RethinkQL\UnitTest\Query;
5
6
use TBolier\RethinkQL\Query\Expr;
7
use TBolier\RethinkQL\UnitTest\BaseUnitTestCase;
8
9
class ExprTest extends BaseUnitTestCase
10
{
11
    /**
12
     * @var Expr
13
     */
14
    private $expr;
15
16
    /**
17
     * @return void
18
     */
19
    public function setUp(): void
20
    {
21
        $this->expr = new Expr('foo');
22
    }
23
24
    /**
25
     * @return void
26
     * @throws \Exception
27
     */
28
    public function testGetQuery(): void
29
    {
30
        $this->assertEquals('foo', $this->expr->getQuery());
31
    }
32
33
//    /**
34
//     * @return void
35
//     * @throws \Exception
36
//     */
37
//    public function testJsonSerialize(): void
38
//    {
39
//        $this->assertEquals('foo', $this->expr->jsonSerialize());
40
//    }
41
}
42