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

QueryTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetQuery() 0 7 1
A testJsonSerialize() 0 7 1
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