Passed
Pull Request — master (#11)
by Michel
02:36
created

ExprTest::testJsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace TBolier\RethinkQL\UnitTest\Query;
5
6
use PHPUnit\Framework\TestCase;
7
use TBolier\RethinkQL\Query\Expr;
8
9
class ExprTest extends TestCase
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
     */
27
    public function testGetQuery(): void
28
    {
29
        $this->assertEquals('foo', $this->expr->getQuery());
30
    }
31
32
    /**
33
     * @return void
34
     */
35
    public function testJsonSerialize(): void
36
    {
37
        $this->assertEquals('foo', $this->expr->jsonSerialize());
38
    }
39
}
40