Passed
Pull Request — master (#197)
by
unknown
07:20
created

ExpressionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
c 2
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testValue() 0 11 1
1
<?php
2
namespace Foolz\SphinxQL\Tests;
3
4
use Foolz\SphinxQL\Expression;
5
6
use PHPUnit\Framework\TestCase;
7
8
class ExpressionTest extends TestCase
9
{
10
    public function testValue(): void
11
    {
12
        $result = new Expression();
13
14
        $this->assertInstanceOf(Expression::class, $result);
15
        $this->assertEquals('', (string) $result);
16
17
        $result = new Expression('* \\ Ç"" \'');
18
19
        $this->assertInstanceOf(Expression::class, $result);
20
        $this->assertEquals('* \\ Ç"" \'', (string) $result);
21
    }
22
}
23