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

ExprTest::testJsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
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