Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
15 | final class Elasticsearch7QueryTest extends TestCase |
||
16 | { |
||
17 | 1 | public function testFromNativeWithNullQuery(): void |
|
18 | { |
||
19 | 1 | $this->expectException(InvalidArgumentException::class); |
|
20 | /** @psalm-suppress NullArgument */ |
||
21 | 1 | Elasticsearch7Query::fromNative(null); |
|
22 | } |
||
23 | |||
24 | 1 | public function testFromNativeWithStringQuery(): void |
|
25 | { |
||
26 | 1 | $this->expectException(InvalidArgumentException::class); |
|
27 | /** @psalm-suppress InvalidArgument */ |
||
28 | 1 | Elasticsearch7Query::fromNative('query'); |
|
|
|||
29 | } |
||
30 | |||
31 | 1 | public function testToNative(): void |
|
39 | 1 | } |
|
40 | } |
||
41 |