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

QueryTest::testJsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 9.4285
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\Query;
8
9
class QueryTest extends TestCase
10
{
11
    /**
12
     * @rreturn void
13
     */
14
    public function testGetQuery(): void
15
    {
16
        $queryArray = ['foo' => 'bar'];
17
        $query = new Query($queryArray);
18
19
        $this->assertEquals($queryArray, $query->getQuery());
20
    }
21
22
    /**
23
     * @return void
24
     */
25
    public function testJsonSerialize(): void
26
    {
27
        $queryArray = ['foo' => 'bar'];
28
        $query = new Query($queryArray);
29
30
        $this->assertEquals($queryArray, $query->jsonSerialize());
31
    }
32
}
33